Fully added GUI for sshfs
This commit is contained in:
parent
c6dbed1904
commit
729e224dc2
|
@ -8,6 +8,11 @@
|
||||||
- xdotool (gui)
|
- xdotool (gui)
|
||||||
- ssh
|
- ssh
|
||||||
- sshfs
|
- sshfs
|
||||||
|
- ssh-askpass
|
||||||
|
|
||||||
### TODO
|
### 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
|
||||||
|
|
|
@ -76,7 +76,7 @@ get_info() {
|
||||||
info=$(yad \
|
info=$(yad \
|
||||||
--posx="$mouse_x" \
|
--posx="$mouse_x" \
|
||||||
--posy="$mouse_y" \
|
--posy="$mouse_y" \
|
||||||
--width="350" \
|
--width=400 \
|
||||||
--title="New remote directory" \
|
--title="New remote directory" \
|
||||||
--text="Link to a remote directory" \
|
--text="Link to a remote directory" \
|
||||||
--form \
|
--form \
|
||||||
|
@ -118,6 +118,9 @@ configure_mount() {
|
||||||
|
|
||||||
info_box "Attempting to link directories..." &
|
info_box "Attempting to link directories..." &
|
||||||
info_pid=$(( $! + 2 )) # yikes, is this safe?
|
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"
|
if ! ssh "$server_name" "test -d $sshfs_remote_path"
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue