# HG changeset patch # User Christophe Lincoln # Date 1308347010 -7200 # Node ID 10d2e9fb61319308511411e0eea2d2b2752b7423 # Parent 61cfe46c0cb952e326fe8eeeb52e77c9959dfd96 ssfs-box: small improvments diff -r 61cfe46c0cb9 -r 10d2e9fb6131 ssfs-box --- a/ssfs-box Tue Jun 14 18:34:54 2011 +0100 +++ b/ssfs-box Fri Jun 17 23:43:30 2011 +0200 @@ -37,16 +37,17 @@ if [ ! -s "$config" ]; then $0 setup && exit 0 fi - [ "$opts" ] || opts="--width=460 --height=320" + [ "$opts" ] || opts="--width=520 --height=320" text=$(gettext "Welcome to the Ssfs Client user interface") info | yad $opts \ --list --title="Ssfs Box" \ --image-on-top --window-icon=$pixmap \ --text="$text" --image=$pixmap \ --column "Ssfs" --column "$(gettext "Value")" \ - --button="$(gettext "Setup client"):4" \ - --button="$(gettext "Edit config"):3" \ - --button="$(gettext "Browse files"):2" \ + --button="$(gettext "Setup client"):5" \ + --button="$(gettext "Edit config"):4" \ + --button="$(gettext "Browse files"):3" \ + --button="$(gettext "SSH Login"):2" \ --button="gtk-close:1" } @@ -57,16 +58,19 @@ # Deal with --button values case $? in 1) exit 0 ;; - 2) file-manager $HOME/Sync ;; - 3) editor $config ;; - 4) $0 setup ;; + 2) terminal -e "ssfs login" ;; + 3) file-manager $HOME/Sync ;; + 4) editor $config ;; + 5) $0 setup ;; *) continue ;; esac case $main in + Files*) file-manager $HOME/Sync ;; RSA*) yad --text-info --title="RSA Key" \ --width=560 --height=420 \ - --filename=$HOME/.ssh/id_rsa ;; + --filename=$HOME/.ssh/id_rsa \ + --button="gtk-close:1" ;; *) continue ;; esac @@ -100,7 +104,7 @@ # Notification mode. notify() { - export opts="--geometry=460x320-40+40 --timeout=6 --skip-taskbar" + export opts="--geometry=520x320-40+40 --timeout=6 --skip-taskbar" yad --notification --image=$pixmap --command=$0 \ --text="$(gettext "Ssfs Live Sync storage")" }