diff --git a/README.md b/README.md index 5f9a0fe..8d51c78 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,11 @@ - xdotool (gui) - ssh - sshfs +- ssh-askpass ### TODO -- Support for passwords with private keys +- Support for passwords with private keys (done probably?) +- Code cleanup + - Equal signs before all yad options + - Move shared functions into separate files +- Error handling for file creation diff --git a/sshfs_gui.sh b/sshfs_gui.sh index e5681e7..3af8bcf 100644 --- a/sshfs_gui.sh +++ b/sshfs_gui.sh @@ -76,7 +76,7 @@ get_info() { info=$(yad \ --posx="$mouse_x" \ --posy="$mouse_y" \ - --width="350" \ + --width=400 \ --title="New remote directory" \ --text="Link to a remote directory" \ --form \ @@ -118,6 +118,9 @@ configure_mount() { info_box "Attempting to link directories..." & info_pid=$(( $! + 2 )) # yikes, is this safe? + + test -e "$sshfs_local_path" \ + || mkdir -p "$sshfs_local_path" if ! ssh "$server_name" "test -d $sshfs_remote_path" then