You are not logged in.

#1 2024-06-24 06:48:56

Morta
Member
Registered: 2019-07-07
Posts: 660

I can't activate systemd service as user in sway with gdm

It's not a ssh connection a normal terminal session with alacritty

[morta@lapt0p ~]$ su mpd
Passwort:

[mpd@lapt0p morta]$ loginctl show-session $XDG_SESSION_ID
Id=1
User=1000
Name=morta
Timestamp=Mon 2024-06-24 08:43:06 CEST
TimestampMonotonic=47755199
VTNr=2
Seat=seat0
TTY=tty2
Remote=no
Service=gdm-autologin
Scope=session-1.scope
Leader=993
Audit=1
Type=wayland
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no

[mpd@lapt0p morta]$ systemctl enable --user mpd.service
Failed to connect to bus: Keine Berechtigung

Why?

Offline

#2 2024-06-24 07:27:33

Morta
Member
Registered: 2019-07-07
Posts: 660

Re: I can't activate systemd service as user in sway with gdm

It's have also no folder systemd under .config

Offline

#3 2024-06-24 13:20:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,081

Re: I can't activate systemd service as user in sway with gdm

Because a su is not a session switch in the general sense. Do not switch to the MPD user, use your normal session user (morta) and then follow the configuration information in: https://wiki.archlinux.org/title/Music_ … figuration

Offline

Board footer

Powered by FluxBB