Repository navigation
fix: restore the Screensaver hardware shortcut #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yixinshark
wants to merge
1
commit into
linuxdeepin:master
Choose a base branch
from
yixinshark:fix/bug-380369-screensaver-shortcut
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
.../shortcut/configs/org.deepin.dde.keybinding.shortcut.screensaver/org.deepin.shortcut.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| { | ||
| "magic": "dsg.config.meta", | ||
| "version": "1.0", | ||
| "contents": { | ||
| "appId": { | ||
| "value": "org.deepin.dde.keybinding", | ||
| "serial": 0, | ||
| "flags": [], | ||
| "name": "appId", | ||
| "name[zh_CN]": "提供快捷键应用Id", | ||
| "description": "provide shortcut app id", | ||
| "permissions": "", | ||
| "visibility": "private" | ||
| }, | ||
| "displayName": { | ||
| "value": "Screen Saver", | ||
| "serial": 0, | ||
| "flags": [], | ||
| "name": "displayName", | ||
| "name[zh_CN]": "锁屏", | ||
| "description": "锁屏快捷键", | ||
| "permissions": "", | ||
| "visibility": "private" | ||
| }, | ||
| "hotkeys": { | ||
| "value": [ | ||
| "Screensaver" | ||
| ], | ||
| "serial": 0, | ||
| "flags": [], | ||
| "name": "hotkeys", | ||
| "name[zh_CN]": "快捷键组合", | ||
| "description": "快捷键组合", | ||
| "permissions": "", | ||
| "visibility": "private" | ||
| }, | ||
| "triggerType": { | ||
| "value": 1, | ||
| "serial": 0, | ||
| "flags": [], | ||
| "name": "triggerType", | ||
| "name[zh_CN]": "快捷键触发动作类型", | ||
| "description": "appId类型", | ||
| "permissions": "", | ||
| "visibility": "private" | ||
| }, | ||
| "triggerValue": { | ||
| "value": [ | ||
| "/usr/bin/dde-shortcut-tool", | ||
| "power", | ||
| "system-away" | ||
| ], | ||
| "serial": 0, | ||
| "flags": [], | ||
| "name": "triggerValue", | ||
| "name[zh_CN]": "快捷键触发动作", | ||
| "description": "触发动作", | ||
| "permissions": "", | ||
| "visibility": "private" | ||
| }, | ||
| "category": { | ||
| "value": "System", | ||
| "serial": 1, | ||
| "flags": [], | ||
| "name": "category", | ||
| "name[zh_CN]": "快捷键类别(System)", | ||
| "description": "System shortcut category", | ||
| "permissions": "", | ||
| "visibility": "private" | ||
| }, | ||
| "enabled": { | ||
| "value": true, | ||
| "serial": 0, | ||
| "flags": [], | ||
| "name": "enabled", | ||
| "name[zh_CN]": "使能", | ||
| "description": "是否启用快捷键", | ||
| "permissions": "", | ||
| "visibility": "private" | ||
| }, | ||
| "modifiable": { | ||
| "value": false, | ||
| "serial": 0, | ||
| "flags": [], | ||
| "name": "modifiable", | ||
| "name[zh_CN]": "能否修改快捷键", | ||
| "description": "不能修改快捷键", | ||
| "permissions": "", | ||
| "visibility": "private" | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium · Lock requests fail silently
When the X11 session manager is unavailable or rejects
RequestLock,PowerController::systemAway()neither warns when the X11 session-manager interface is invalid nor checks theRequestLockreply, so the Screensaver key does nothing without an actionable error.Check the X11 call result and log a warning when the interface is unavailable or the request fails.
Prompt for AI agents