-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kiosk profile #4
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat, TIL gnome-kiosk is a thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this run as a system service and system user I wonder? I know there's various wayland things (I think cage
?) meant for this stuff as well? I'm wildly unfamiliar with this space tbh
mkosi.profiles/kiosk/mkosi.extra/usr/lib/sysusers.d/10-particleos-kiosk.conf
Outdated
Show resolved
Hide resolved
mkosi.profiles/kiosk/mkosi.extra/usr/lib/systemd/system-preset/05-particleos-kiosk.preset
Outdated
Show resolved
Hide resolved
No, the way this works gdm runs as a systemd system service, it autologins into the kiosk users and starts the gnome-kiosk session. Then gnome-kiosk runs a script that looks for |
I would name the profile gnome-kiosk to avoid confusion with the several other kiosk things out there (weston kiosk shell, cage, etc) |
Sure, I don't have strong feelings about the name. @DaanDeMeyer are profile names with dashes ok? |
Yeah sure no problem |
922bf63
to
1d19419
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, haven't tried it though, still travelling.
mkosi.profiles/gnome-kiosk/mkosi.extra/usr/lib/sysusers.d/10-particleos-kiosk.conf
Show resolved
Hide resolved
This adds a profile for a kiosk-style appliance leveraging gnome-kiosk. The user can customize the application run on first boot, or at image build time with something like the following in `tmpfiles.d`: ``` d /home/kiosk/.config 0755 kiosk kiosk - - f /home/kiosk/.config/gnome-initial-setup-done 0644 kiosk kiosk - - d /home/kiosk/.local 0755 kiosk kiosk - - d /home/kiosk/.local/bin 0755 kiosk kiosk - - C /home/kiosk/.local/bin/gnome-kiosk-script 0755 kiosk kiosk - ``` Signed-off-by: Davide Cavalca <[email protected]>
This adds a profile for a kiosk-style appliance leveraging gnome-kiosk. The user can interactively customize the application run on first boot, or at image build time with something like the following in
tmpfiles.d
: