[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** No longer affects: qt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Changed in: plasma-workspace (Ubuntu) Status: Confirmed => Fix Released ** Changed in: qtbase-opensource-src (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Changed in: qtbase-opensource-src (Ubuntu) Assignee: Timo Jyrinki (timo-jyrinki) => (unassigned) -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to plasma-workspace in Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- kubuntu-bugs mailing list kubuntu-b...@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Bug watch added: KDE Bug Tracking System #362671 https://bugs.kde.org/show_bug.cgi?id=362671 -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to plasma-workspace in Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- kubuntu-bugs mailing list kubuntu-b...@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Bug watch added: freedesktop.org Bugzilla #70593 https://bugs.freedesktop.org/show_bug.cgi?id=70593 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Changed in: kdebase-workspace Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Changed in: qtbase-opensource-src (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to plasma-workspace in Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- kubuntu-bugs mailing list kubuntu-b...@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: qtbase-opensource-src (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Changed in: kdebase-workspace Status: Won't Fix => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Changed in: kdebase-workspace Status: Unknown => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
Launchpad has imported 9 comments from the remote bug at https://bugs.kde.org/show_bug.cgi?id=354724. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2015-11-02T07:34:43+00:00 Leslie Zhai wrote: When open chromium, konsole, thunderbird, then logout, relogin, but only thunderbird successful WM_SAVE_YOURSELF, chromium or konsole failed to be opened. plasma-workspace: 5.4.90 KF5: 5.15.0 Qt5: 5.5.1 Reproducible: Always Steps to Reproduce: 1. open chromium, konsole, thunderbird, then logout 2. relogin Actual Results: but only thunderbird successful WM_SAVE_YOURSELF Expected Results: chromium and konsole able to be opened. Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma- workspace/+bug/1446865/comments/76 On 2015-11-02T07:36:53+00:00 Leslie Zhai wrote: my ~/.config/ksmserverrc [General] screenCount=1 [LegacySession: saved at previous logout] clientMachine1=localhost command1=thunderbird count=1 [Session: saved at previous logout] clientId1=1014cd7d2d400014443520570012260003 clientId2=1014cd7d2d400014443520850012260012 clientId3=10bd534f4600014461053770070460007 count=3 discardCommand1[$e]=rm,$HOME/.config/session/kwin_1014cd7d2d400014443520570012260003_1446105607_787343 discardCommand2[$e]=rm,$HOME/.config/session/kmix_1014cd7d2d400014443520850012260012_1446105607_737385 program1=kwin_x11 program2=/bin/kmix program3=/usr/lib/mozilla/kmozillahelper restartCommand1=kwin_x11,-session,1014cd7d2d400014443520570012260003_1446105607_787343 restartCommand2=/bin/kmix,-session,1014cd7d2d400014443520850012260012_1446105607_737385 restartCommand3=/usr/lib/mozilla/kmozillahelper,-session,10bd534f4600014461053770070460007_1446105607_737492 restartStyleHint1=0 restartStyleHint2=0 restartStyleHint3=0 userId1=lesliezhai userId2=lesliezhai userId3=lesliezhai wasWm1=true wasWm2=false wasWm3=false Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma- workspace/+bug/1446865/comments/77 On 2015-11-05T08:31:53+00:00 Leslie Zhai wrote: When open konsole, dolphin, systemsettings5, then logout legacy.cpp, line 113 windowSessionId(*it, leader) is NOT EMPTY! legacy.cpp, line 214 windowWmCommand(w) is EMPTY! Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma- workspace/+bug/1446865/comments/78 On 2015-11-23T01:42:30+00:00 maelcum wrote: While debugging the problem with Konsole, I found a common problem with Qt5 applications: QGuiApplicationPrivate::commitData() (supposed to make sure that the session is saved) calls QApplicationPrivate::tryCloseAllWindows() which, when QGuiApplication::quitOnLastWindowClosed() is true, invokes QApplication::quit() which terminates the application immediately after it reports successful session saving to the session manager ksmserver. During session shutdown, ksmserver still removes its bookkeeping data about applications that were terminated for any reason - including those that quit right after session saving. When ksmserver saves the list of existing application slightly later, konsole is gone and, while it has a session save file, that file isn't "registered" in ksmserverrc, which makes it useless. There are at several problems: - QGuiApplicationPrivate::commitData() effectively quits the application if the application didn't call QGuiApplication::setQuitOnLastWindowClosed(false). This is despite Qt's own documentation recommending against quitting the application due to a request to save the session data. - setQuitOnLastWindowClosed(false) is not a good solution. Quit on last window closed is a useful feature, the problem is more that session saving implies closing windows, which doesn't make too much sense. It is supposed to prevent interaction with a state that won't be saved anymore, but there are other ways to do that, e.g. preventing user input and network event handling. - ksmserver should maybe stop removing applications from its internal list while shutting down. Because shutdown can be aborted, changes would have to be queued and applied after an aborted shutdown. Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma- workspace/+bug/1446865/comments/79 On 2015-11-23T01:56:17+00:00 Leslie Zhai wrote: Hi Andreas, Thanks for your analysis, I wrongly argued that it might be libSM issue, I will try your solution. Reply at: https://bugs.launchpad.net/ubuntu/+source/plasma- workspace/+bug/1446865/comments/80 --
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
** Bug watch added: KDE Bug Tracking System #354724 https://bugs.kde.org/show_bug.cgi?id=354724 ** Changed in: kdebase-workspace Importance: Low => Unknown ** Changed in: kdebase-workspace Status: Fix Released => Unknown ** Changed in: kdebase-workspace Remote watch: KDE Bug Tracking System #341930 => KDE Bug Tracking System #354724 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
Let's wait for the latter patch to be approved and merged, and I can then cherry-pick it later. The former patch is already part of the Qt 5.5.1 packages that will land soon to xenial. ** Changed in: qtbase-opensource-src (Ubuntu) Assignee: (unassigned) => Timo Jyrinki (timo-jyrinki) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
Here is a very helpful comment from Thomas Lübking from kde-bugs #341930: KWin is not responsible for restarting applications. This bug was *only* about not restoring window manager attributes (position, virtual desktop, etc.) on session restorage. There're fundamental bugs in Qt5 that prevent (both, correct and entire) restoring of Qt5 applications, see * https://codereview.qt-project.org/#/c/113806/ * https://codereview.qt-project.org/#/c/113901/ * http://marc.info/?l=kde-core-devel&m=144832700109449&w=1 ** Description changed: - I use the setting "On Login : Restore previous session". I also use - several virtual desktops. - - When I open a KDE5 session, all windows are opened on the first virtual desktop. - With KDE4 all windows were restored on their virtual desktop, which is the expect behaviour. + KDE5/Qt5 does not support proper session restoration. ProblemType: Bug - DistroRelease: Ubuntu 15.04 - Package: kwin 4:5.2.2a-0ubuntu1 - Uname: Linux 4.0.0-04-lowlatency x86_64 - ApportVersion: 2.17.2-0ubuntu1 - Architecture: amd64 - CurrentDesktop: KDE - Date: Tue Apr 21 22:46:17 2015 - SourcePackage: kwin - UpgradeStatus: Upgraded to vivid on 2015-04-20 (0 days ago) + DistroRelease: Ubuntu 15.10 ** Package changed: kwin (Ubuntu) => plasma-workspace (Ubuntu) ** Also affects: qtbase-opensource-src (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to kwin in Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- kubuntu-bugs mailing list kubuntu-b...@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs
[Bug 1446865] Re: KDE5/Qt5 does not support session restoration
This bug is dependent on this upstream Qt bug: https://bugreports.qt.io/browse/QTBUG-45484 but launchpad would not let me enter this URL. ** Summary changed: - kwin does not remember on which desktop to open windows on session start + KDE5/Qt5 does not support session restoration ** Also affects: qt Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446865 Title: KDE5/Qt5 does not support session restoration To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1446865/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs