deluge-console preferences not applying

General support for problems installing or using Deluge
Post Reply
DeFra
New User
New User
Posts: 2
Joined: Sun Mar 10, 2024 4:17 pm

deluge-console preferences not applying

Post by DeFra »

I change some settings and hit apply, the preferences tab closes but they stay default
deluge-console/kinetic,kinetic,now 2.1.1-0~202207101304~ubuntu22.10.1 all [installed]
mhertz
Moderator
Moderator
Posts: 2216
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: deluge-console preferences not applying

Post by mhertz »

Thanks for reporting, I made a bug ticket long ago but still an issue indeed, though will resubmit new later, as stupidly reported 4 issues in one ticket, where rest fixed dunno what was thinking, as hard to close such. Anyway I didnt yet find out what the issue is myself, but neither looked very hard honestly, as just edits core.conf manually or use it's non-curses CLI mode through 'config - s'(haven't tested if ClI mode works inside the curses-mode though, which also an option).
DeFra
New User
New User
Posts: 2
Joined: Sun Mar 10, 2024 4:17 pm

Re: deluge-console preferences not applying

Post by DeFra »

mhertz wrote: Sun Mar 10, 2024 8:03 pm Thanks for reporting, I made a bug ticket long ago but still an issue indeed, though will resubmit new later, as stupidly reported 4 issues in one ticket, where rest fixed dunno what was thinking, as hard to close such. Anyway I didnt yet find out what the issue is myself, but neither looked very hard honestly, as just edits core.conf manually or use it's non-curses CLI mode through 'config - s'(haven't tested if ClI mode works inside the curses-mode though, which also an option).
i can only find deluged conf, does it apply to deluge-console conf too? the download dir on the conf file is different than the one displayed on the cli so im not sure (/var/lib/deluged/Downloads on core.conf, /root/Downloads on cli)
mhertz
Moderator
Moderator
Posts: 2216
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: deluge-console preferences not applying

Post by mhertz »

It's core.conf in the running daemon's config location, which depends upon which user running under i.e. when using systemd then usually /var/lib/deluged/.config/deluge/core.conf, and if running deluged manually, then from logged in user-account under .config/deluge.

Btw, I just tested that command-line mode inside console-UI also works, I mean inside console-UI and pressing 'l' key, so looks like v1.x deluge-console, or as said can just use terminal with cli args for deluge-console.

It's little confusing honestly, so let me know if unclear still - and just quick example to illustrate: If having deluged running under systemd and connecting to it from deluge-console running under root(as your post seem suggest somewhat), then need edit as previously said /var/lib/deluged/.config/deluge/core.conf, and not /root/.config/deluge/core.conf, as latter is only for if running deluged under said root user, but now is running under deluge user from systemd - you can though configure specific console-UI preferences inside /root/.config/deluge/console.conf if wanted, as deluge-console is running under root here, hence applies.
mhertz
Moderator
Moderator
Posts: 2216
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: deluge-console preferences not applying

Post by mhertz »

I found the issue and here's a command-line to fix locally if wanted:

Code: Select all

sudo find /usr -path "*/deluge/ui/console/modes/preferences/preferences.py" -exec sed -i 's/selected_index/active_index/' {} \;
I will submit a ticket soon and edit in link here later - it's a simple fix so thought would do PR, but decided against seeing as i'm in doubt about how Cas want's it fixed, as see 2 ways to do it(i.e. fixing selected_index to update from active_index here also, or just like me use the already provided active_index simply), so ticket it is, as per usual.

Edit: After more indepth looking, I made PR anyway, as believe my change correct afterall, of the couple possibilities: https://github.com/deluge-torrent/deluge/pull/445

Btw, I also see you can coincidentally workaround this issue meanwhile, through pressing spacebar before return - also don't need bother with 'Apply', as 'OK' enough and still persistent(saved in config).
Post Reply