File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
usr/share/session-migration/scripts Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ usr/share/mate/autostart/print-applet.desktop
23
23
usr/share/mate/autostart/ubuntu-mate-settings-overlay.desktop
24
24
usr/share/plank/themes/
25
25
usr/share/ubuntu-mate/
26
+ usr/share/session-migration/scripts
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # Migrate Firefox from deb to snap
4
+ # https://bazaar.launchpad.net/~mozillateam/firefox/firefox.jammy/view/head:/firefox
5
+ if [ -x /snap/bin/firefox ]; then
6
+ # Update default browser
7
+ if [ " $( xdg-settings get default-web-browser) " = " firefox.desktop" ]; then
8
+ xdg-settings set default-web-browser firefox_firefox.desktop
9
+ fi
10
+
11
+ # Migrate mate-panel launchers
12
+ OLD=" /usr/share/applications/firefox.desktop"
13
+ NEW=" /var/lib/snapd/desktop/applications/firefox_firefox.desktop"
14
+ OBJECTS=$( gsettings get org.mate.panel object-id-list 2> /dev/null)
15
+ for object in $OBJECTS ; do
16
+ object=$( echo $object | cut -d\' -f2)
17
+ launcher=$( gsettings get org.mate.panel.object:/org/mate/panel/objects/$object / launcher-location)
18
+ if [ " $launcher " = " '$OLD '" ]; then
19
+ gsettings set org.mate.panel.object:/org/mate/panel/objects/$object / launcher-location " '$NEW '"
20
+ fi
21
+ done
22
+
23
+ # Migrate plank dockitems
24
+ if [ -e ~ /.config/plank/dock1/launchers/firefox.dockitem ]; then
25
+ rm ~ /.config/plank/dock1/launchers/firefox.dockitem
26
+ cp /usr/share/ubuntu-mate/settings-overlay/config/plank/dock1/launchers/firefox_firefox.dockitem ~ /.config/plank/dock1/launchers/
27
+ fi
28
+ fi
You can’t perform that action at this time.
0 commit comments