Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
feat: Add KDE integration for Ptyxis
Browse files Browse the repository at this point in the history
feat: Customize default dock/favorite applications
chore: Hide Konsole by default
  • Loading branch information
KyleGospo committed Feb 28, 2024
1 parent 81d012e commit 1976d75
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"$
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/system.conf && \
sed -i '/^PRETTY_NAME/s/Kinoite/aurora/' /usr/lib/os-release && \
sed -i '/<entry name="launchers" type="StringList">/,/<\/entry>/ s/<default>[^<]*<\/default>/<default>preferred:\/\/browser,applications:org.gnome.Ptyxis.desktop,applications:org.kde.discover.desktop,preferred:\/\/filemanager<\/default>/' /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml && \
sed -i '/<entry name="favorites" type="StringList">/,/<\/entry>/ s/<default>[^<]*<\/default>/<default>preferred:\/\/browser,systemsettings.desktop,org.kde.dolphin.desktop,org.kde.kate.desktop,org.gnome.Ptyxis.desktop,org.kde.discover.desktop<\/default>/' /usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/config/main.xml && \
sed -i 's@Exec=ptyxis@Exec=kde-ptyxis@g' /usr/share/applications/org.gnome.Ptyxis.desktop && \
cp /usr/share/applications/org.gnome.Ptyxis.desktop /usr/share/kglobalaccel/org.gnome.Ptyxis.desktop && \
rm -f /usr/share/kglobalaccel/org.kde.konsole.desktop && \
rm -rf /tmp/* /var/* && \
ostree container commit && \
mkdir -p /var/tmp && \
Expand Down
11 changes: 11 additions & 0 deletions usr/bin/kde-ptyxis
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/bash
# Shim to handle KDE only supporting -e
# https://bugs.kde.org/show_bug.cgi?id=459616
args=("${@//-e/--}")

# Dolphin integration requires --new-window to function properly
if [[ ! "${args[@]}" =~ "--" && ! "${args[@]}" =~ "-h" && ! "${args[@]}" =~ "-x" ]]; then
/usr/bin/ptyxis --new-window "${args[@]}"
else
/usr/bin/ptyxis "${args[@]}"
fi
9 changes: 9 additions & 0 deletions usr/etc/dconf/db/local.d/01-ptyxis
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[org/gnome/Ptyxis]
restore-session=false
restore-window-size=false
profile-uuids=['2871e8027773ae74d6c87a5f659bbc74']
default-profile-uuid='2871e8027773ae74d6c87a5f659bbc74'

[org/gnome/Ptyxis/Profiles/2871e8027773ae74d6c87a5f659bbc74]
palette='Breeze'
opacity=0.9
3 changes: 3 additions & 0 deletions usr/etc/xdg/kdeglobals
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[General]
TerminalApplication=kde-ptyxis
TerminalService=org.gnome.Ptyxis.desktop

0 comments on commit 1976d75

Please sign in to comment.