Pat*_*hes 8 linux kde dbus kde-plasma-workspace
是否有 DBus 命令(或来自命令行的其他方式)在 KDE Plasma 的面板上切换自动隐藏?(我正在运行 KDE 4.6。)
我有一个我在 WINE 中运行的游戏,如果它是自动隐藏的,它就不能正常工作,并且从为我处理这个问题的脚本中运行它会很好。
您可以通过Plasma 桌面脚本轻松完成此操作,如下所示:
自动隐藏:
var panel = panelById(panelIds[0])
panel.hiding = 'autohide';
Run Code Online (Sandbox Code Playgroud)
自动隐藏关闭:
var panel = panelById(panelIds[0])
panel.hiding = 'none';
Run Code Online (Sandbox Code Playgroud)
坏消息是,除了某种键盘+鼠标自动化之外,无法在需要时以编程方式运行脚本。
您可以获得的最接近的结果(根据KDE 论坛上的讨论)是通过以下方式在桌面控制台中打开脚本
qdbus org.kde.plasma-desktop /MainApplication \
loadScriptInInteractiveConsole /path/to/js/file
Run Code Online (Sandbox Code Playgroud)
KDE Bugzilla 中对此提交了错误#238817 。
| 归档时间: |
|
| 查看次数: |
3118 次 |
| 最近记录: |