You are not logged in.
I'm doing a setup to run only firefox under bare X and want it to start as soon as the system boots. I've successfully enabled auto-login for my user account following the wiki. Now to start firefox at start up, searching the web, I found a systemd method. I created a script containing:
#!/bin/bash startx /bin/firefox Then I created a systemd unit and enabled it to run the script and it does open firefox at boot but as root user. How can I do this as a normal user? Also is creating this script and then creating the unit unnecessary, meaning only putting /bin/firefox after ExecStart= in the unit will do the trick?
Last edited by Ridwan Rawriet (2022-01-28 12:03:21)
Offline
In the systemd unit:
[Service]
User=yourusername
Group=groupname_optional
The second method you could simply try.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Thanks, for replying to mega noob stuff. Solved!
Last edited by Ridwan Rawriet (2021-11-08 10:30:29)
Offline
Please mark this thread as [solved] as per https://wiki.archlinux.org/title/Genera … ow_to_post
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Offline
Why create a script to run from a service when your .profile is already being run. Just follow this:
https://wiki.archlinux.org/title/Start_X_at_boot
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline