Re: [systemd-devel] Execute a script/program at the start of a graphical session

2022-05-12 Thread Dan Nicholson
On Thu, May 12, 2022 at 5:31 AM Gerion Entrup wrote: > > The broader question is: Is there a way to start a script at the > beginning of a graphical session (but after X or the Wayland compositor > have started) which is independent of the login manager or desktop > environment? You can use an XD

Re: [systemd-devel] Execute a script/program at the start of a graphical session

2022-05-12 Thread Andrea Pappacoda
Il giorno gio 12 mag 2022 alle 13:31:41 +02:00:00, Gerion Entrup ha scritto: Is there a possibility to trigger systemd to execute some script under the current user when logind detects a new graphical session? This way, it would not depend on the login manager and desktop environment. The bro

[systemd-devel] Execute a script/program at the start of a graphical session

2022-05-12 Thread Gerion Entrup
Hi, in our work we have a setup where a PC is used by many different users under a variety of desktop environments. The PC has several monitors and we use a xrandr script to setup them correctly (independent of the graphical session) as soon as an user starts an arbitrary graphical session. We re