giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.34k stars 457 forks source link

document from last session is not opened upon restart #2329

Closed karel1 closed 1 year ago

karel1 commented 1 year ago

Version, Operative system Linux Manjaro (Arch) , CT vs 1.0.0

Describe the bug CherryTree does not open last document from last session. It does show the document in File / Recent Documents and does load it when selected.

The config file (with added .txt or it would not upload) is attached.

This has been the case since ± half a year with all recent versions of CherryTree (and on two Linux installations).

Thank you for looking into this, greetings from your Dutch translator!

Screenshots If applicable, add screenshots to help explain your problem. config.cfg.txt

karel1 commented 1 year ago

On Linux Mint (my 3rd Linux) with CT .99.43 the last document opens fine! And that document is the same document in the same folder that is used by the Linux Manjaro installation.

giuspen commented 1 year ago

Can you try on Linux Mint to do File-->Preferences-->Export and then in Manjaro File-->Preferences-->Import, I'm curious if there is any change after that? I will try your config too and let you know

giuspen commented 1 year ago

Strange I couldn't reproduce your issue importing your preferences on Ubuntu, I shall give it a try on Manjaro... in the meantime can you try to temporarily disable the systray / start on stystray and see if anything changes?

karel1 commented 1 year ago

Negative on both your questions (Import and Disable Systray options). BTW The systray options were enabled in my Manjaro CT and also did not (and do not) work. Also: Manjaro / Arch are running with Wayland and Mint with X11.

giuspen commented 1 year ago

If you start cherrytree from a terminal, as it fails to run the document from the last session, is it printing any complaint?

giuspen commented 1 year ago

... also can you specify which desktop are you running Manjaro with?

giuspen commented 1 year ago

... also could it be that your document is on an external or network drive and you have cherrytree to start automatically at boot and that drive may not be mounted yet at that time so the document comes available later when cherrytree is already running?

karel1 commented 1 year ago

Both Arch and Manjaro have KDE desktop. No, the document is on SSD drive and in home folder. In terminal it runs OK, meaning it opens the document from last session. This got me looking in the settings of the KDE Launcher / Menu with respect to CT. And that showed the cause, see attachment. Once I cleared the Arguments field, CT opened the document from last session OK! Thanks for your support!

scrnshot

giuspen commented 1 year ago

Oh I see, is it the --new-window option causing the problem for you?

karel1 commented 1 year ago

Very strange / can't explain: I added '--new-window' again and then rebooted and CT starts OK. I then also added ' %f' ,rebooted and CT starts OK. My 'problem' is solved, you can close this issue. Thanks again!

giuspen commented 1 year ago

Ok cheers @karel1