summary refs log tree commit diff
path: root/host/rootfs/etc/s6-rc/cosmic-panel/run
diff options
context:
space:
mode:
Diffstat (limited to 'host/rootfs/etc/s6-rc/cosmic-panel/run')
-rw-r--r--host/rootfs/etc/s6-rc/cosmic-panel/run20
1 files changed, 20 insertions, 0 deletions
diff --git a/host/rootfs/etc/s6-rc/cosmic-panel/run b/host/rootfs/etc/s6-rc/cosmic-panel/run
new file mode 100644
index 0000000..73397cd
--- /dev/null
+++ b/host/rootfs/etc/s6-rc/cosmic-panel/run
@@ -0,0 +1,20 @@
+#!/bin/execlineb -P
+# SPDX-License-Identifier: EUPL-1.2+
+# SPDX-FileCopyrightText: 2021, 2023 Alyssa Ross <hi@alyssa.is>
+
+# Really cosmic-panel should look here by default, but it doesn't
+# properly implement the XDG Base Directories spec.
+export XDG_CONFIG_HOME /etc/xdg
+
+export XDG_RUNTIME_DIR /run/user/0
+export WAYLAND_DISPLAY wayland-1
+
+backtick USER { id -un }
+backtick HOME {
+  importas -i user USER
+  homeof $user
+}
+
+importas -i home HOME
+cd $home
+cosmic-panel