Skip to content

Commit

Permalink
prime-select.sh: fix kdeglobals path (github issue#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
sndirsch committed Nov 30, 2022
1 parent 6f7cf35 commit 12a5d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prime-select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function update_kdeglobals {

panel_name=${1}

kdeglobals="$(sudo -u $user -i eval 'echo -n $HOME')/.config/kdeglobals"
kdeglobals="$(sudo -u $user /usr/bin/printenv HOME)/.config/kdeglobals"

if [ -f $kdeglobals ]; then
sudo -u $user sed -i -r "s/(ScreenScaleFactors=)$panel_nvidia|$panel_intel|$panel_intel2/\1$panel_name/" "$kdeglobals"
Expand Down

0 comments on commit 12a5d42

Please sign in to comment.