mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-08 19:32:34 +01:00
add bash/usr-local-bin/meld
This commit is contained in:
parent
2a8d5e07c8
commit
907b1a425a
17
bash/usr-local-bin/meld
Executable file
17
bash/usr-local-bin/meld
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# In case we are on SteamOS?
|
||||||
|
#set -x
|
||||||
|
# The usual system-wide installation
|
||||||
|
if [ -f /usr/bin/meld ]; then
|
||||||
|
/usr/bin/meld $@
|
||||||
|
# System-wide flatpak
|
||||||
|
elif [ -f /var/lib/flatpak/exports/bin/org.gnome.meld ]; then
|
||||||
|
flatpak run org.gnome.meld $@
|
||||||
|
# User-specific flatpak
|
||||||
|
elif [ -f ~/.local/share/flatpak/exports/bin/org.gnome.meld ]; then
|
||||||
|
flatpak run --user org.gnome.meld $@
|
||||||
|
# If not found.
|
||||||
|
else
|
||||||
|
printf "meld doesn't seem to be installed :("
|
||||||
|
fi
|
||||||
|
#set +x
|
Loading…
Reference in New Issue
Block a user