Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
metaclam opened this issue Aug 27, 2024 · 4 comments
Open

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

metaclam opened this issue Aug 27, 2024 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@metaclam
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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.

@lighterowl lighterowl added the enhancement New feature or request label Aug 27, 2024
@metaclam
Copy link
Author

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

@lighterowl lighterowl added this to the 5.18.8 milestone Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants