[systemd-devel] Execute a script/program at the start of a graphical session
Dan Nicholson
dbn at endlessos.org
Thu May 12 17:23:27 UTC 2022
On Thu, May 12, 2022 at 5:31 AM Gerion Entrup
<entrup at sra.uni-hannover.de> 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 XDG autostart desktop file with NoDisplay=true -
https://specifications.freedesktop.org/autostart-spec/0.5/ar01s02.html.
But with a systemd user session it's often just converted into a unit
anyways.
--
Dan
More information about the systemd-devel
mailing list