Skip to content

Commit

Permalink
Simplify startkde
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Oct 20, 2024
1 parent e3cfea6 commit b9923ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions usr/bin/startkde-biglinux
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ lastlogin=$(cat "$HOME/.kdebiglinux/lastlogin")
ID=$(grep -Eo '\[Containments\]\[[0-9]{1,5}\]\[Wallpaper\]\[org.kde.image\]' ~/.config/plasma-org.kde.plasma.desktop-appletsrc|head -n1|sed 's|\[||g;s|\]| |g'|cut -f2 -d' ')

#Get path from last wallpaper
WALLPAPER=$(kreadconfig6 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc --group Containments --group $ID --group Wallpaper --group org.kde.image --group General --key Image|sed 's|file://||')
WALLPAPER="$(kreadconfig6 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc --group Containments --group $ID --group Wallpaper --group org.kde.image --group General --key Image|sed 's|file://||')"

#Link from wallpaper to ksplash
ln -sf "$WALLPAPER" /tmp/bigksplash.jpg
chmod 777 /tmp/bigksplash.jpg

if [[ "$XDG_SESSION_TYPE" != "wayland" ]]; then
feh --bg-fill "/tmp/bigksplash.jpg" &
fi
#if [[ "$XDG_SESSION_TYPE" != "wayland" ]]; then
# feh --bg-fill "/tmp/bigksplash.jpg" &
#fi

# Fix full screen when switch desktop for globalmenu on or off
if [ "$nowlogin" != "$lastlogin" ]; then
Expand Down Expand Up @@ -163,7 +163,7 @@ fi

export XDG_SESSION_DESKTOP=KDE

portal-kde-verify.sh &
#portal-kde-verify.sh &

# In some laptops backlight not restore correctly, try fix this
sudo biglinux-backlight-restore 2> /dev/null &
Expand Down

0 comments on commit b9923ce

Please sign in to comment.