Skip to content

Commit 71efc74

Browse files
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 71efc74

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
@@ -22,6 +22,7 @@ Type=notify
2222
# Only start if the template instance matches the session type.
2323
ExecCondition=/bin/sh -c 'test "$XDG_SESSION_TYPE" = "%I" || exit 2'
2424
ExecStartPre=-/bin/sh -c 'cp -n /etc/xdg/kglobalshortcutsrc $HOME/.config/kglobalshortcutsrc'
25+
ExecStartPre=-/bin/sh -c 'sed -i "s/deepin-kwin/kwin/g" $HOME/.config/kglobalshortcutsrc'
2526
ExecStart=/usr/bin/kwin_x11 --replace
2627
# Exit code 1 means we are probably *not* dealing with an extension failure
2728
SuccessExitStatus=1

0 commit comments

Comments
 (0)