summary refs log tree commit diff
path: root/host/rootfs/etc/s6-rc/cosmic-panel/run
blob: 73397cd7a3f3bcd1c17cf286b00bf2c76c6a6061 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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