slitaz-tools view tinyutils/file-manager @ rev 1011
Add sdt SliTaz Distro Tracker
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 11 23:41:23 2017 +0100 (2017-02-11) |
parents | eb791cfb71c0 |
children |
line source
1 #!/bin/sh
2 # Launch SliTaz default File manager.
3 #
5 . /etc/slitaz/applications.conf
7 USER_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/slitaz/applications.conf"
8 [ -f $USER_CONFIG ] && . $USER_CONFIG
10 if [ -z "$XAUTHORITY" ]; then
11 # console session
12 EXEC="$FILE_MANAGER"
13 else
14 # Xorg session
15 EXEC="terminal -e $FILE_MANAGER"
16 fi
18 case $FILE_MANAGER in
19 clex) $EXEC ;;
20 ytree) $EXEC $@ ;;
21 mc) $EXEC -S gotar -d $@ ;;
22 *) exec setsid $FILE_MANAGER $@ ;;
23 esac
25 exit 0