Opened 11 years ago

Closed 10 years ago

#4053 closed Bug (worksforme)

After restarting the daemon, the qt client forgets that the toolbar should be hidden

Reported by: cantabile Owned by: jordan
Priority: Normal Milestone: None Set
Component: Qt Client Version: 2.21
Severity: Normal Keywords:
Cc:

Description

I run transmission-daemon on arch linux, with this command:
$ transmission-daemon -b -g ~/.config/transmission

I use the qt client as a graphical interface to the daemon, with this command:
$ transmission-qt -p 9091

In the "View" menu, I uncheck "Toolbar" and "Filterbar" and transmission-qt remembers that, no matter how many times it is restarted. However, as soon as the daemon is restarted, transmission-qt forgets that those bars should be hidden.

Change History (5)

comment:1 follow-up: Changed 11 years ago by Lacrocivious

'Works-for-me'

transmission-daemon 2.21+ (12072) <--SVN trunk Linux hostname.cos.lan 2.6.35.11-83.fc14.i686.PAE #1 SMP <--Fedora 14 32-bit

$ /usr/local/bin/transmission-daemon --allowed "127.0.0.*,192.168.1.*" --config-dir /home/username/.config/transmission --encryption-required --port 9091 --peerport 51419

Started transmission-qt; changed from local session to remote session of above transmission-daemon.

Changed transmission-qt interface to hide Toolbar and Filterbar.

Quit transmission-qt, then restarted it after about two minutes. Toolbar and Filterbar were not visible; View settings remembered.

Sent pid kill to transmission-daemon; verified daemon was stopped by using ps after a minute or so.

Waited five minutes to see whether transmission-qt complained about losing contact with daemon; it did not, but simply paused where it had been when the daemon was killed.

Started transmission-daemon with same command line as above.

Watched as transmission-qt discovered restarted transmission-daemon. Toolbar and Filterbar did not become visible; their state was remembered from View settings previously entered.

comment:2 in reply to: ↑ 1 Changed 11 years ago by cantabile

Replying to Lacrocivious:

'Works-for-me'
...
...
Watched as transmission-qt discovered restarted transmission-daemon. Toolbar and Filterbar did not become visible; their state was remembered from View settings previously entered.

I think you misunderstood. I should have been more verbose:

1. start daemon
2. start qt client with -p 9091
3. hide toolbar
4. close qt client
5. send SIGTERM to daemon
6. restart daemon
7. restart qt client -- toolbar visible again

That's how it happens here. I never tried closing the daemon while the qt client was running.

comment:3 Changed 11 years ago by Lacrocivious

Aha! You're right, you should have been more verbose ;-)

When the steps you just listed are performed, the result is as you say; the View settings revert.

This is because settings.json is being overwritten by transmission-daemon when it exits. Because the lines:

"show-filterbar": true,

"show-toolbar": true,

were loaded when transmission-daemon started, they are written again when it exits.

Here's a workaround:

  1. start transmission-daemon
  2. start transmission-qt
  3. hide toolbar; hide filterbar
  4. close transmission-qt
  5. open ~/.config/transmission/settings.json in text editor <--your path may vary
  6. note that lines now read:

"show-filterbar": false,

"show-toolbar": false,

  1. send SIGTERM to transmission-daemon
  2. save the copy of settings.json you have *open in your editor*, overwriting daemon's version
  3. restart transmission-daemon
  1. restart transmission-daemon <--toolbars hidden

Forgive me if you already know this. Making the transmission-qt settings stick otherwise is beyond me, and might mess up the webui's need to make changes sometimes.

comment:4 Changed 11 years ago by cantabile

Then I guess this isn't really a bug, hmm.

Maybe I should just keep their settings separate.

comment:5 Changed 10 years ago by jordan

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.