January 11, 2020 2:06 PM, "Abel Luck" <[email protected]> wrote:

> Hi there,
> 
> Using the fedora and debian minimal templates, how can I execute a
> script on *login*? I'm aware of /rw/config/rc.local, but that runs on
> system boot.
> 
> Rather, I want to run something after X11 has initialized and my user is
> logged in.
> 
> Since no DE is installed, .desktop files in ~/.config/autostart are not
> executed in the minimal templates
> 
> ~abel

Would .xinitrc work?

Systemd units with After=graphical.target and properly configured User=, 
Display=, Session=, Seat=, and/or whatever else might be necessary. Or maybe 
user-mode systemd units. https://wiki.archlinux.org/index.php/Systemd/User

Or maybe rc.local with `systemctl is-system-running --wait` before your 
commands - I often have to use this with qvm-run. Running from rc.local though, 
commands might not be running as the right 
user/session/seat/slice/scope/whatever, I don't know.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/cb9602caf03cf1401b51e2bb40a8cbb2%40disroot.org.

Reply via email to