Skip to content

Commit

Permalink
feat(sddm): add mount unit for installing sddm themes in Discover (#1944
Browse files Browse the repository at this point in the history
)

Co-authored-by: m2 <[email protected]>
  • Loading branch information
RealVishy and m2Giles authored Nov 23, 2024
1 parent 4ea2f4d commit c5f467c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions build_files/base/07-base-image-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ if [[ "${BASE_IMAGE_NAME}" = "kinoite" ]]; then
rm -f /etc/profile.d/gnome-ssh-askpass.{csh,sh} # This shouldn't be pulled in
rm -f /usr/share/kglobalaccel/org.kde.konsole.desktop
systemctl enable kde-sysmonitor-workaround.service
systemctl enable usr-share-sddm-themes.mount

# Get Default Font since font fallback doesn't work
curl --retry 3 --output-dir /tmp -LO https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.zip
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Workaround to allow KDE Discover to install sddm themes

[Unit]
Description=KDE writable sddm workaround
RequiresMountsFor=/usr/share/sddm/themes /var/sddm_themes/themes /var/sddm_themes/themes.work

[Mount]
Type=overlay
What=overlay
Where=/usr/share/sddm/themes
Options=lowerdir=/usr/share/sddm/themes,upperdir=/var/sddm_themes/themes,workdir=/var/sddm_themes/themes.work

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
d /var/sddm_themes/themes 0750 - - -
d /var/sddm_themes/themes.work 0750 - - -

0 comments on commit c5f467c

Please sign in to comment.