Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Boilerplate for using mir_kiosk_x11 for a desktop session (for use as a "stage-snap")

License

Notifications You must be signed in to change notification settings

MirServer/mir-kiosk-desktop-snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mir-kiosk-desktop

This provides the boilerplate for using mir_kiosk_x11 for a confined desktop session.

It is intended for use as a stage-snap and provides the essentials to create a confined desktop session with a single fullscreen application. The resulting snap needs registering with the desktop manager by running:

/snap/NAME_OF_SNAP/current/desktop/setup

And also connecting the login-session-control and 'hardware-observe' interfaces:

snap connect NAME_OF_SNAP:login-session-control
snap connect NAME_OF_SNAP:hardware-observe

There are certain elements that needed to be included in the final snap:

parts:
  mir-kiosk-desktop:
    plugin: nil
    stage-snaps: [mir-kiosk-desktop]
    override-build: |
      snapcraftctl build
      sed s/\$\{SNAPCRAFT_PROJECT_NAME}/${SNAPCRAFT_PROJECT_NAME}/g --in-place $SNAPCRAFT_PART_INSTALL/desktop/setup
      sed s/\$\{SNAPCRAFT_PROJECT_NAME}/${SNAPCRAFT_PROJECT_NAME}/g --in-place $SNAPCRAFT_PART_INSTALL/desktop/mir-kiosk-desktop.desktop

layout:
  /usr/share/X11:
    bind: $SNAP/usr/share/X11
  /usr/bin/xkbcomp:
    symlink: $SNAP/usr/bin/xkbcomp
  /usr/share/icons:
    bind: $SNAP/usr/share/icons
  /usr/share/fonts:
    bind: $SNAP/usr/share/fonts
  /etc/fonts:
    bind: $SNAP/etc/fonts

plugs:
  opengl:         # For Mir
  wayland:        # For Mir
  network-bind:   # For Mir (to serve X11)
  login-session-control: # To start a desktop session
  hardware-observe: # To start a desktop session

About

Boilerplate for using mir_kiosk_x11 for a desktop session (for use as a "stage-snap")

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages