{"action":"created","issue":{"url":"https://api.github.com/repos/lxde/lxqt/issues/833","labels_url":"https://api.github.com/repos/lxde/lxqt/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/lxde/lxqt/issues/833/comments","events_url":"https://api.github.com/repos/lxde/lxqt/issues/833/events","html_url":"https://github.com/lxde/lxqt/issues/833","id":109117562,"number":833,"title":"LXQt versus the screensaver","user":{"login":"gauthma","id":412743,"avatar_url":"https://avatars.githubusercontent.com/u/412743?v=3","gravatar_id":"","url":"https://api.github.com/users/gauthma","html_url":"https://github.com/gauthma","followers_url":"https://api.github.com/users/gauthma/followers","following_url":"https://api.github.com/users/gauthma/following{/other_user}","gists_url":"https://api.github.com/users/gauthma/gists{/gist_id}","starred_url":"https://api.github.com/users/gauthma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauthma/subscriptions","organizations_url":"https://api.github.com/users/gauthma/orgs","repos_url":"https://api.github.com/users/gauthma/repos","events_url":"https://api.github.com/users/gauthma/events{/privacy}","received_events_url":"https://api.github.com/users/gauthma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-30T15:33:07Z","updated_at":"2015-10-03T08:57:45Z","closed_at":"2015-09-30T16:49:29Z","body":"In order to lock the screen and suspend the session, I used a `slock` and a `systemd` script, as described [here](http://erroneousthoughts.org/my-notes-for-a-swift-arch-linux-install/#Graphical_Environment). I'm an Archlinux user. This worked really well, until I upgraded to the latest and greatest LXQt version from `git`: now, when I close the lid, an error is shown complaining that `xscreensaver` is not installed, **and the session is NOT suspended**! When open the lid back up, and click \"Ok\" in the error message box, **then** the screen is locked and the session suspended!\r\n\r\nAfter ingloriously googling for a solution, I started `grep`ing the code, and found that `xdg-screensaver` was used to manipulate the screensaver, in file `liblxqtscreensaver.cpp` (package `liblxqt`). The problem is that with `xdg-utils` 1.1.0.git20150323-1 (the current version in Arch), the LXQt desktop is **not detected**. And the error message complaining about `xscreensaver` seems to be output from blindly looking at `xdg-screensaver`'s exit code.\r\n\r\nI managed to workaround this issue by changing line 60 of `liblxqtscreensaver.cpp` to:\r\n\r\n     m_xdgProcess->start(\"xdg-screensaver\", QStringList() << \"--version\");\r\n\r\nIn the original there was \"lock\" instead of \"--version\". If I just commented out the line, it also worked, but only from the *second* time I closed the lid (closing the lid for the first time after a reboot did nothing...). I'm not sure this is even a bug with `LXQt` (instead of `xdg-utils`), but if anyone has any thoughts on this, I'd like to hear them :-)"},"comment":{"url":"https://api.github.com/repos/lxde/lxqt/issues/comments/145227395","html_url":"https://github.com/lxde/lxqt/issues/833#issuecomment-145227395","issue_url":"https://api.github.com/repos/lxde/lxqt/issues/833","id":145227395,"user":{"login":"gauthma","id":412743,"avatar_url":"https://avatars.githubusercontent.com/u/412743?v=3","gravatar_id":"","url":"https://api.github.com/users/gauthma","html_url":"https://github.com/gauthma","followers_url":"https://api.github.com/users/gauthma/followers","following_url":"https://api.github.com/users/gauthma/following{/other_user}","gists_url":"https://api.github.com/users/gauthma/gists{/gist_id}","starred_url":"https://api.github.com/users/gauthma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauthma/subscriptions","organizations_url":"https://api.github.com/users/gauthma/orgs","repos_url":"https://api.github.com/users/gauthma/repos","events_url":"https://api.github.com/users/gauthma/events{/privacy}","received_events_url":"https://api.github.com/users/gauthma/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T08:57:44Z","updated_at":"2015-10-03T08:57:44Z","body":"@paulolieuthier Thanks for your efforts in fixing this! The good news is that lxde/liblxqt#64 fixes this bug. The bad news is that it causes two new problems: first, main menu -> Leave -> Logout no longer works (it does nothing). Second, after restarting the graphical environment, LXQt Power Management stops working: just after logging in an error message is shown stating that LXQt Power Management has crashed too many times, and thus has been stopped until the next login."}}