Desktop: clear last session's single-instance state, run under a session bus, stage the launcher from the app

The desktop came up with a wallpaper and nothing on it the second time. The
runtime directory outlives a session, and lxqt-panel and pcmanfm-qt are
single-instance programs that leave a lock and a socket there; finding last
session's, they decided they were already running and exited without a word.
The launcher now clears everything but the compositor's own socket, runs labwc
under dbus-run-session so the panel's menus and the file manager have the bus
they expect, and logs what the panel and the file manager say. The launcher
and labwc's defaults are staged by the app over the desktop package's copies,
so a fix here no longer costs a 426 MB re-download.
This commit is contained in:
The412Banner committed 2026-09-20 04:16:07 -04:00
1 parent 3ea82f6447
commit 07dadb13f3
5 files changed
+73 -2

No files matched your search

@@ -32,7 +32,15 @@ object SessionFiles {
"usr/local/bin/bannerlator-seed-redists" to "usr/local/bin/bannerlator-seed-redists",
"usr/local/bin/bannerlator-proton-extra" to "usr/local/bin/bannerlator-proton-extra",
)
for ((asset, relative) in files) {
// The desktop's launcher and labwc defaults, only where the desktop package is installed:
// staging them into a runtime without it would make the desktop look present when it is not.
val desktop = arrayOf(
"usr/local/bin/steamdeck-desktop" to "usr/local/bin/steamdeck-desktop",
"etc/xdg/labwc/autostart" to "etc/xdg/labwc/autostart",
"etc/xdg/labwc/rc.xml" to "etc/xdg/labwc/rc.xml",
)
val all = if (File(root, "usr/bin/labwc").isFile) files + desktop else files
for ((asset, relative) in all) {
val target = File(root, relative)
val staged = File(target.parentFile, target.name + ".staged")
var installed = false