You are not logged in.
I'm setting up an Arch installation that should run unsupervised and whenever it boots up should auto-login as a dummy user and automatically run a specific X application. The entire scenario is similar to so-called "kiosk mode" on other devices.
Can I just setup a systemd service that will launch my X application? Do I need a DM that will auto-login before the systemd target starts? Can I just auto-login the user, use https://wiki.archlinux.org/index.php/Sy … ay_manager and stick my X executable in .xinitrc?
Curious what approaches I can use here.
Last edited by yuvadm (2016-06-01 11:13:09)
Offline
I would run startx from your one of your Bash startup files.
Your ~/.xinitrc would pass control to your program, without a window manager, by using exec theNameOfYourProgram
When your program exits, you will fall back to the login shell. You can make your ~/.xinitrc restart it if you need to.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I would run startx from your one of your Bash startup files.
Which file would that be? IIUC .bashrc or .bash_profile won't actually run unless the user actively logs in.
Offline
autologin: https://wiki.archlinux.org/index.php/Au … al_console
then startx at login: https://wiki.archlinux.org/index.php/Xi … X_at_login
.bash_profile is parsed when the user logs in, even if the login is automatic.
Then, as ewaller says, add the program you want to start to .xinitrc.
Offline
Sounds like a rather simple approach, will give it a shot. Thanks!
Offline
Thanks 2ManyDogs, I missed the auto login step.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
My preferred approach is to simply place this line in ~/.bash_profile (with autologin enabled):
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx /usr/bin/foo
No need for ~/.xinitrc then
Jin, Jîyan, Azadî
Offline