-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbr
executable file
·54 lines (45 loc) · 905 Bytes
/
br
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
if [ -z $1 ]; then
targetdir=$PWD
else
targetdir=$1
fi
if which thunar > /dev/null 2>&1 ; then
thunar "$targetdir" &
exit
fi
# osx
if which open > /dev/null 2>&1 ; then
open "$targetdir"
exit
fi
if which nautilus > /dev/null 2>&1 ; then
nautilus --no-desktop "$targetdir" & > /dev/null 2>&1
# while true; do
# sleep 1
# if [ -d "${HOME}/Desktop" ]; then
# rmdir ${HOME}/Desktop
# exit
# fi
# done
exit
fi
if which rox-filer > /dev/null 2>&1 ; then
/usr/bin/rox-filer --dir=$targetdir &
exit
fi
if which XandrosFileManager > /dev/null 2>&1 ; then
XandrosFileManager $targetdir &
exit
fi
# other options
#kfmclient folder file:$PWD > /dev/null 2>&1 &
#gmc . > /dev/null 2>&1 &
#konqueror . > /dev/null 2>&1 &
# mate
if which caja > /dev/null 2>&1 ; then
caja $targetdir &
exit
fi
echo "no worthy file-manager found"
exit 1