mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-06-28 13:10:05 +00:00
debug: support native systemd services
3.34 can run sessions using systemd user services. Use these if available to access the journal.
This commit is contained in:
6
debug
6
debug
@@ -51,7 +51,11 @@ function decode-multiline-message {
|
||||
}
|
||||
|
||||
function gnome-shell-exe-path {
|
||||
if uname -a | grep --silent "NixOS"; then
|
||||
if systemctl --user status gnome-shell-x11.service > /dev/null; then
|
||||
echo --user-unit=gnome-shell-x11.service
|
||||
elif systemctl --user status gnome-shell-wayland.service > /dev/null; then
|
||||
echo --user-unit=gnome-shell-wayland.service
|
||||
elif uname -a | grep --silent "NixOS"; then
|
||||
echo $(dirname =gnome-shell(:A))/.gnome-shell-wrapped
|
||||
else
|
||||
echo =gnome-shell
|
||||
|
||||
Reference in New Issue
Block a user