首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何定义Kubuntu中的启动活动?

如何定义Kubuntu中的启动活动?
EN

Ask Ubuntu用户
提问于 2014-11-29 08:17:19
回答 1查看 1.1K关注 0票数 1

我使用KDE中的活动来单独组织kubuntu桌面,但不幸的是,默认情况下,我的媒体活动是启动的。我怎么能定制呢?

Kubuntu14.04内核:3.13.0-38-通用(64位) KDELibs: 4.13.3 QTversion: 4.8.6

谢谢你的帮助,如果你需要更多关于我的系统的信息,请告诉我。

EN

回答 1

Ask Ubuntu用户

发布于 2014-11-29 19:33:52

活动管理器配置设置

~/..kde/share/config/activitymanagerrc具有可用、运行和当前活动的信息。

在这里,KDE更新activitymanagerrc的速度很慢。如果我更改活动并注销,当前的活动仍然是旧的。KDE中的下一个日志正在开始旧的活动。

解决办法:

  • 在注销之前停止其他活动--有点傻;)
  • 使用kwriteconfig设置/更新当前活动。

kwriteconfig帮助文件:

代码语言:javascript
复制
:~$ kwriteconfig --help
Usage: kwriteconfig [Qt-options] [KDE-options] [options] value 

Write KConfig entries - for use in shell scripts

Generic options:

  --help                    Show help about options

  --help-qt                 Show Qt specific options

  --help-kde                Show KDE specific options

  --help-all                Show all options

  --author                  Show author information

  -v, --version             Show version information

  --license                 Show license information

  --                        End of options

Options:
  --file <file>             Use <file> instead of global config

  --group <group>           Group to look in. Use repeatedly for nested groups. [KDE]

  --key <key>               Key to look for

  --type <type>             Type of variable. Use "bool" for a boolean, otherwise it is treated as a string


Arguments:

  value                     The value to write. Mandatory, on a shell use '' for empty

在这里,activitymanagerrc有:

代码语言:javascript
复制
[activities]
43ef904a-bf13-4770-87b4-3804059f073f=Media
5dfa29b8-765b-4860-ad56-3b0e257e8923=Desktop
afcf7ba3-4aa7-433f-abad-14db4f31b44b=New Activity

[activities-icons]
43ef904a-bf13-4770-87b4-3804059f073f=

[main]
currentActivity=43ef904a-bf13-4770-87b4-3804059f073f
runningActivities=43ef904a-bf13-4770-87b4-3804059f073f,5dfa29b8-765b-4860-ad56-3b0e257e8923

所以命令:

代码语言:javascript
复制
kwriteconfig --file activitymanagerrc --group main --key currentActivity -type string 5dfa29b8-765b-4860-ad56-3b0e257e8923

将当前活动设置为桌面。

可以将kwriteconfig命令添加到KDE系统设置>启动和关闭>自动启动

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/554533

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档