小编aaa*_*aaa的帖子

如何对指标进行排序

我在 Ubuntu 12.04 上,我想知道是否有任何方法可以对这样的指标进行排序(图片):

ubuntu 的指标

底部栏是默认栏,上部栏是我想对它们进行排序的方式。

 dbus-send --type=method_call --print-reply --dest=com.canonical.indicator.application /com/canonical/indicator/application/service com.canonical.indicator.application.service.GetApplications | grep "object path"
Run Code Online (Sandbox Code Playgroud)

返回这个:

object path "/org/ayatana/NotificationItem/lang_indicator/Menu"
object path "/org/ayatana/NotificationItem/My_Weather_Indicator/Menu"
object path "/org/ayatana/NotificationItem/transmission/Menu"
object path "/org/ayatana/NotificationItem/bluetooth_manager/Menu"
object path "/org/ayatana/NotificationItem/indicator_sysmonitor/Menu"
object path "/org/ayatana/NotificationItem/nm_applet/Menu"
Run Code Online (Sandbox Code Playgroud)

我必须如何编辑“~/.local/share/indicators/application/ordering-override.keyfile”才能做到这一点?

indicator unity

8
推荐指数
0
解决办法
3053
查看次数

如何创建桌面条目以启动 Python 脚本?

我制作了我的小 Python 应用程序,但无法使用我创建的桌面条目启动该应用程序:

[Desktop Entry]
Name=MyApp
Version=0.1
Exec=/usr/share/MyApp/MyApp.py
Icon=/usr/share/MyApp/img/MyApp.png
Comment=Description......
Type=Application
Terminal=false
StartupNotify=false
Categories=Video;GTK;GNOME
Run Code Online (Sandbox Code Playgroud)

/usr/share/MyApp我以 root 身份创建的文件夹MyApp.py具有可执行属性。

我每次双击MyApp.desktopMyApp.py推出,显示系统托盘图标,但它关闭,使Ubuntu的显示错误消息。

如果我运行MyApp.pyfrom 终端或双击.py它正常运行的文件,则不会崩溃。

.desktop

2
推荐指数
1
解决办法
3万
查看次数

标签 统计

.desktop ×1

indicator ×1

unity ×1