mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-10-17 10:04:08 +00:00
We cannot use After=snapd.service as user services cannot synchronize with system services. Using `snap system wait seed.loaded` should work, except for the fact that it requires polkit authentication to perform this operation. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
18 lines
657 B
Desktop File
18 lines
657 B
Desktop File
# start the installer on session start, restore normal session on close
|
|
|
|
[Unit]
|
|
Description=Ubuntu Desktop Installer
|
|
PartOf=graphical-session.target
|
|
After=graphical-session.target
|
|
|
|
# Never run in GDM
|
|
Conflicts=gnome-session@gnome-login.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
# Make sure that the system was seeded to access the snap
|
|
ExecStartPre=/usr/bin/snap wait system seed.loaded
|
|
ExecStart=/snap/bin/ubuntu-desktop-bootstrap --try-or-install
|
|
ExecStopPost=sh -c "gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed true; gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true; gnome-extensions enable ding@rastersoft.com"
|
|
Restart=no
|