File Dialogues for Thin Client
Posted: Mon Dec 16, 2013 7:03 am
When I changed from "Classic Mode" to thin client, the file dialogues disappeared for functions such as Download Location, and Move Storage. This makes sense, of course, since Deluge does not know what the relative paths are for the server and client.
However, in my case, I've set up my NFS shares so that the paths are identical. This makes things easier. Instead of typing the whole path into Deluge, I just find the directory using Dolphin (Gnome users would use Nautilus), then copy and paste the address into Deluge. That may seem lazy, but it also avoids typos (some of my directories are 5 levels deep).
It occurs to me that it should be possible to have an option to use file dialogues with the thin client, if you provide the absolute paths of the base download location for both the server, and either nfs or smb shares. For example, if your base download location is "home/username/documents/shared_stuff/" on you server, and this directory is mounted as "home/different_username/storage/server_files/shared_stuff/" on your client, then provided Deluge knows both addresses, it should be simple to convert addresses from the client file dialogues to the actual server address.
Of course, you would need some error checking in case the user provided the wrong base addresses, and a fall-back option in case the user wanted to save a download outside of the base location, but apart from that, it seems pretty straight forward.
I suppose the main question is: how many others would be interested in this?
However, in my case, I've set up my NFS shares so that the paths are identical. This makes things easier. Instead of typing the whole path into Deluge, I just find the directory using Dolphin (Gnome users would use Nautilus), then copy and paste the address into Deluge. That may seem lazy, but it also avoids typos (some of my directories are 5 levels deep).
It occurs to me that it should be possible to have an option to use file dialogues with the thin client, if you provide the absolute paths of the base download location for both the server, and either nfs or smb shares. For example, if your base download location is "home/username/documents/shared_stuff/" on you server, and this directory is mounted as "home/different_username/storage/server_files/shared_stuff/" on your client, then provided Deluge knows both addresses, it should be simple to convert addresses from the client file dialogues to the actual server address.
Of course, you would need some error checking in case the user provided the wrong base addresses, and a fall-back option in case the user wanted to save a download outside of the base location, but apart from that, it seems pretty straight forward.
I suppose the main question is: how many others would be interested in this?