lighterowl / transgui

A fork of Transmission Remote GUI
GNU General Public License v2.0
127 stars 3 forks source link

Cannot edit saved paths in "set data location" pulldown menu #102

Open metaclam opened 3 weeks ago

metaclam commented 3 weeks ago

This is more of a question / feature request than an issue but:

How can I edit the saved paths in the "set data location" pulldown menu? Is there a preference file specific to transgui (other than settings.json?)

feature request: option to edit / remove outdated paths.

lighterowl commented 3 weeks ago

Hey there.

Transgui uses an .ini file for preserving its settings. That file is called transgui.ini and can be found in %LocalAppData%/Transmission Remote GUI on Windows, and $HOME/.config/Transmission Remote GUI on Linux and macOS. There is also a commandline switch --home that you can use to point to a custom location. This way you can also have multiple instances of transgui running, as long as every one of them gets its own "home" directory.

Regarding the saved folders, I'm afraid the only way to remove them right now is to edit the .ini file manually. You should find a section like this in there :

[AddTorrent.${your_connection_name}]
FolderCount=2
Folder0=/foo/bar
FolHit0=2
FolExt0=
LastDt0=12.12.2012
Folder1=/bar/baz
FolHit1=5
FolExt1=
LastDt1=15.05.2024
Folder2=
FolHit2=-1
FolExt2=
LastDt2=

Remove the Folder, FolHit, FolExt and LastDt lines, change FolderCount and re-index the remaining entries.

There's no way to ask the Transmission daemon "does this path still exist" but maybe an option to automatically delete folders older than "x" days/months from these lists would be sufficient?

metaclam commented 3 weeks ago

Thx for the quick reply. Was not sure what you meant by "re-index" the remaining, but I guess just renumber all the lines from 0 to X folders. That seems to have worked.

There's no way to ask the Transmission daemon "does this path still exist" but maybe an option to automatically delete folders older than "x" days/months from these lists would be sufficient?

Is it possible to add a feature to manually edit the list in the GUI?

If not, I would recommend an option to remove folders that have not been used for longer than X months, rather than just ones created more than X months ago, if there is any difference there and a way to track that.

Thank you.

lighterowl commented 3 weeks ago

Thx for the quick reply. Was not sure what you meant by "re-index" the remaining, but I guess just renumber all the lines from 0 to X folders. That seems to have worked.

Yup, that's what I meant. Glad it worked.

Is it possible to add a feature to manually edit the list in the GUI?

Sure, why not. That's probably going to be added to the Manage connections window where one configures the connection properties.

If not, I would recommend an option to remove folders that have not been used for longer than X months, rather than just ones created more than X months ago, if there is any difference there and a way to track that.

That's actually exactly what I meant, LastDt in the .ini file is the "last used" date for the given entry so this kind of information is already connected.

metaclam commented 3 weeks ago

great thanks, look forward to the updates! thanks for your work on this!