Skip to content

Commit

Permalink
feat(kde): Change default pinned application list
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 8, 2024
1 parent 3de83ce commit e0586e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
3 changes: 2 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
kpackagetool5 --type=KWin/Script --global --install /tmp/kwin-system76-scheduler-integration && \
kpackagetool5 --type=Plasma/Wallpaper --global --install /tmp/wallpaper-engine-kde-plugin/plugin && \
rm -rf /tmp/kwin-system76-scheduler-integration && \
rm -rf /tmp/wallpaper-engine-kde-plugin \
rm -rf /tmp/wallpaper-engine-kde-plugin && \
sed -i '/<entry name="launchers" type="StringList">/,/<\/entry>/ s/<default>[^<]*<\/default>/<default>preferred:\/\/browser,applications:steam.desktop,applications:net.lutris.Lutris.desktop,applications:org.gnome.Prompt.desktop,applications:org.kde.discover.desktop,preferred:\/\/filemanager<\/default>/' /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml \
; else \
rpm-ostree override replace \
--experimental \
Expand Down
13 changes: 3 additions & 10 deletions system_files/desktop/shared/usr/bin/bazzite-user-setup
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,12 @@ if [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
echo 'Enabling System76-Scheduler KWin script'
kwriteconfig5 --file kwinrc --group Plugins --key kwin-system76-scheduler-integrationEnabled true

echo 'Creating Desktop shortcuts'
mkdir -p $HOME/Desktop/
if [[ ! -f "$HOME/Desktop/steam.desktop" ]]; then
cp "/usr/share/applications/steam.desktop" "$HOME/Desktop/steam.desktop"
fi
if [[ ! -f "$HOME/Desktop/net.lutris.Lutris.desktop" ]]; then
cp "/usr/share/applications/net.lutris.Lutris.desktop" "$HOME/Desktop/net.lutris.Lutris.desktop"
fi

if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
echo 'Running setup for Kinoite on Steam Deck'
if [[ ! -f "$HOME/Desktop/Return.desktop" ]]; then
cp "/etc/skel.d/Desktop/Return.desktop" "$HOME/Desktop/Return.desktop"
echo 'Re-creating return to gamemode shortcut'
mkdir -p $HOME/Desktop/
cp "/etc/skel/Desktop/Return.desktop" "$HOME/Desktop/Return.desktop"
fi
fi
else
Expand Down

0 comments on commit e0586e5

Please sign in to comment.