Skip to content

Commit 238ffa4

Browse files
author
Your Name
committed
fix: auto rename deepin-kwin config in kglobalshortcutsrc
log: in deepin-kwin 6.0.0, will read kwin group, not dde-kwin
1 parent 49cb9db commit 238ffa4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

systemd/dde-session-pre.target.wants/dde-session@x11.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Type=notify
2121
# kind of painful as systemd had a bug where it retries the condition.
2222
# Only start if the template instance matches the session type.
2323
ExecCondition=/bin/sh -c 'test "$XDG_SESSION_TYPE" = "%I" || exit 2'
24+
ExecStartPre=-/bin/sh -c 'sed -i "s/deepin-kwin/kwin/g" $HOME/.config/kglobalshortcutsrc'
2425
ExecStartPre=-/bin/sh -c 'cp -n /etc/xdg/kglobalshortcutsrc $HOME/.config/kglobalshortcutsrc'
2526
ExecStart=/usr/bin/kwin_x11 --replace
2627
# Exit code 1 means we are probably *not* dealing with an extension failure

0 commit comments

Comments
 (0)