Merge ~seb128/casper:remove-desktopcanary-tweaks into casper:main

Proposed by Sebastien Bacher
Status: Needs review
Proposed branch: ~seb128/casper:remove-desktopcanary-tweaks
Merge into: casper:main
Diff against target: 62 lines (+0/-56)
1 file modified
dev/null (+0/-56)
Reviewer Review Type Date Requested Status
Ubuntu Installer Team Pending
Review via email: mp+462940@code.launchpad.net

Description of the change

One extra note that the script isn't doing anything in any case because of

if [ ! -d /root/snap/ubuntu-desktop-installer/ ]; then
    exit 0
fi

or the installer snap has been renamed ubuntu-desktop-bootstrap in noble

(note that the move to livecd-rootfs was buggy and we have an existing regression in behavior which https://code.launchpad.net/~seb128/livecd-rootfs/+git/livecd-rootfs/+merge/462938 should address)

To post a comment you must log in.

Unmerged commits

2213849... by Sebastien Bacher

Remove the desktop canary tweaks

The changes are done during the ISO build by livecd-rootfs now

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/scripts/casper-bottom/61desktop_canary_tweaks b/scripts/casper-bottom/61desktop_canary_tweaks
2deleted file mode 100755
3index 2a81e0d..0000000
4--- a/scripts/casper-bottom/61desktop_canary_tweaks
5+++ /dev/null
6@@ -1,56 +0,0 @@
7-#! /bin/sh
8-
9-PREREQ=""
10-DESCRIPTION="Tweaks for the desktop image..."
11-
12-prereqs()
13-{
14- echo "$PREREQ"
15-}
16-
17-case $1 in
18-# get pre-requisites
19-prereqs)
20- prereqs
21- exit 0
22- ;;
23-esac
24-
25-. /scripts/casper-functions
26-
27-log_begin_msg "$DESCRIPTION"
28-
29-if [ ! -d /root/snap/ubuntu-desktop-installer/ ]; then
30- exit 0
31-fi
32-
33-# change settings to have an 'installer only' session by default
34-printf "[org.gnome.desktop.a11y]\nalways-show-universal-access-status=true\n" >> /root/usr/share/glib-2.0/schemas/casper.gschema.override
35-# we can't unload the dock because the shell would enter the overview on login, https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1788
36-printf "[org.gnome.shell.extensions.dash-to-dock:ubuntu]\ndock-fixed=false\nintellihide=false\n" >> /root/usr/share/glib-2.0/schemas/casper.gschema.override
37-printf "[org.gnome.shell]\ndisabled-extensions=['ding@rastersoft.com']\n" >> /root/usr/share/glib-2.0/schemas/casper.gschema.override
38-
39-chroot /root glib-compile-schemas /usr/share/glib-2.0/schemas/
40-
41-# start the installer on session start, restore normal session on close
42-cat > /root/usr/lib/systemd/user/ubuntu-desktop-installer.service << EOF
43-
44-[Unit]
45-Description=Ubuntu Desktop Installer
46-PartOf=graphical-session.target
47-After=graphical-session.target
48-
49-# Never run in GDM
50-Conflicts=gnome-session@gnome-login.target
51-
52-[Service]
53-Type=oneshot
54-ExecStart=/snap/bin/ubuntu-desktop-installer --try-or-install
55-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"
56-Restart=no
57-EOF
58-
59-mkdir /root/etc/systemd/user/graphical-session.target.wants/
60-ln -s /root/usr/lib/systemd/user/ubuntu-desktop-installer.service /root/etc/systemd/user/graphical-session.target.wants/
61-
62-log_end_msg

Subscribers

People subscribed via source and target branches