Move the 'xplorer' alias to a binary

Using an alias does not work well when calling it from the WM's
launcher.
This commit is contained in:
Rodolphe Breard 2016-10-31 18:03:54 +01:00
parent 399b685d3f
commit 9d1859928f
2 changed files with 11 additions and 4 deletions

11
bin/xplorer Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -euo pipefail
IFS=$'\n\t'
for name in 'pcmanfm' 'thunar'; do
if hash "$name" 2>/dev/null; then
"$name"
break
fi
done