Skip to content

Commit

Permalink
Revert Plank removal (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jul 10, 2024
1 parent 9f5c7e4 commit 008fafa
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/install
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ accountsservice/io.elementary.pantheon.AccountsService.policy /usr/share/polkit-
skel/flatpak/repo/appcenter.trustedkeys.gpg /etc/skel/.local/share/flatpak/repo/
skel/flatpak/repo/flathub.trustedkeys.gpg /etc/skel/.local/share/flatpak/repo/
skel/flatpak/repo/config /etc/skel/.local/share/flatpak/repo/
skel/plank/dock1 /etc/skel/.config/plank/
sessioninstaller/sessioninstaller.desktop /usr/share/applications/
sudoers.d/* /etc/sudoers.d/
skel/.inputrc /etc/skel/
Expand Down
5 changes: 5 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ option('default-wallpaper-dark',
value: '',
description: 'Path to dark wallpaper to use in Pantheon.')

option('plank-dockitems',
type: 'boolean',
value: true,
description: 'Install default Pantheon Plank dockitems')

option('default-gsettings-overrides',
type: 'boolean',
value: true,
Expand Down
8 changes: 8 additions & 0 deletions overrides/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ if get_option('default-gsettings-overrides')
install_dir: schemadir
)
endif

# Install conditionally because it's dependent on our dockitems being installed
if get_option('plank-dockitems')
install_data(
'plank-dockitems.gschema.override',
install_dir: schemadir
)
endif
2 changes: 2 additions & 0 deletions overrides/plank-dockitems.gschema.override
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[net.launchpad.plank.dock.settings:Pantheon]
dock-items=['gala-multitaskingview.dockitem', 'io.elementary.files.dockitem', 'org.gnome.Epiphany.dockitem','io.elementary.mail.dockitem','io.elementary.tasks.dockitem', 'io.elementary.calendar.dockitem','io.elementary.music.dockitem','io.elementary.videos.dockitem','io.elementary.photos.dockitem','io.elementary.switchboard.dockitem','io.elementary.appcenter.dockitem']
8 changes: 8 additions & 0 deletions skel/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
skeldir = sysconfdir / 'skel'

# Planks Default DockItems
if get_option('plank-dockitems')
install_subdir(
'plank',
install_dir: skeldir / '.config'
)
endif

# AppCenter Flatpak Remote
if get_option('appcenter-flatpak')
install_subdir(
Expand Down
2 changes: 2 additions & 0 deletions skel/plank/dock1/launchers/gala-multitaskingview.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/gala-multitaskingview.desktop
4 changes: 4 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.appcenter.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/io.elementary.appcenter.desktop


4 changes: 4 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.calendar.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/io.elementary.calendar.desktop


2 changes: 2 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.files.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/io.elementary.files.desktop
2 changes: 2 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.mail.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/io.elementary.mail.desktop
2 changes: 2 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.music.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///var/lib/flatpak/exports/share/applications/io.elementary.music.desktop
3 changes: 3 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.photos.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[PlankDockItemPreferences]
Launcher=file:///var/lib/flatpak/exports/share/applications/io.elementary.photos.desktop

3 changes: 3 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.switchboard.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/io.elementary.switchboard.desktop

2 changes: 2 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.tasks.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/io.elementary.tasks.desktop
3 changes: 3 additions & 0 deletions skel/plank/dock1/launchers/io.elementary.videos.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[PlankDockItemPreferences]
Launcher=file:///var/lib/flatpak/exports/share/applications/io.elementary.videos.desktop

2 changes: 2 additions & 0 deletions skel/plank/dock1/launchers/org.gnome.Epiphany.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///var/lib/flatpak/exports/share/applications/org.gnome.Epiphany.desktop

0 comments on commit 008fafa

Please sign in to comment.