[okular] [Bug 400089] Previously closed PDF's open at startup, accompanied by an error message

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Tue Oct 23 03:50:49 BST 2018


https://bugs.kde.org/show_bug.cgi?id=400089

--- Comment #4 from dustin.fenster at gmail.com ---
(In reply to Tobias Deiminger from comment #3)
> (In reply to dustin.fenster from comment #2)
> > they are under the section [Session: saved at previous
> > logout]--maybe that is what you meant.
> No, I guessed "saved by user", because you initially wrote okular documents
> "were all closed after use". If okular had actually been closed when you
> logged out, okular can't appear in "saved at previous logout". That's at
> least how I understand the XSMP protocol and ksmserver. We can discuss
> details in the mailing list if you want.

Hmm. Don't know what happened, then.

> 
> But you also write "now open upon each restart". That's wired. Can you check
> the timestamp of ksmserverrc for when it was last modified, and reconsider
> if that timestamp matches with the last time you logged out/shutdown? On
> logout ksmserver should update the "saved at previous logout" section, and
> possibly existing okular entries should be vanished (unless okular is still
> open).

I don't see a timestamp.  Also, there have been several restarts and okular is
definitely not open.

> 
> > There are also some lines such as:
> > discardCommand14[$e]=rm,$HOME/.config/session/
> > okular_102b23022f7285000153793688600000013880083_1538059437_972466.  Just
> > pointing this out because it references okular, don't know if that's normal.
> That's fine, ksmserver needs the entries to clean up old sessions.
> 
> > > Do you still get "Could not open file" this way?
> > 
> > Doing this does not produce the error.
> Ok, sounds like your cloud service is also started during KDE login, and the
> local storage is not yet available at the early stage when ksmserver
> restores application sessions. Might that be?

Could be.  

> 
> > There are several with one of two url's, which is odd because 6 or 7 files
> > are opening
> Sorry, no idea about that.
> 
> > Should I simply delete all of the
> > "restartCommand13=/usr/bin/okular,-session,
> > 102b23022f7285000153793686000000013880082_1538059437_972580", etc. lines?
> The cleanest way is probably to backup ~/.config/ksmserverrc and
> $HOME/.config/session/*, then remove all those files, and restart. You
> should start with a "clean" session again.

I have deleted the lines and everything is good.  I also start with a new
session now at login.  
Thanks for your help.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list