小编Wes*_*Wes的帖子

自定义 .desktop 文件——名称未显示在 Ubuntu 13.04 上的 Unity dash 中

我有几个从 12.10 ubuntu 迁移过来的 .desktop 文件。他们指向的应用程序启动得很好,当我搜索它们时,图像显示在破折号中……但是当它们显示在破折号中时,图像下方没有任何文字,只是图像。默认情况下安装或通过软件中心安装的所有其他应用程序都显示正常。

这是我创建的示例 .desktop:

[Desktop Entry]
Version=1.0
Name=Sublime Text 2
GenericName=Text Editor
Comment=Awesome Text Editor
Exec=/home/wes/Sublime\ Text\ 2/sublime_text
Icon=/home/wes/Sublime Text 2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Run Code Online (Sandbox Code Playgroud)

这就是我的意思:

自定义 .desktop 启动器没有文字

编辑:这只是我过去创建的 2 或 3 个 .desktop 文件的一个示例,它们在 12.10 中按预期工作,但似乎都缺少 13.04 中的应用程序名称(仅在破折号中)。我不认为这是图标大小,因为我尝试了各种不同的大小(32x32、64x64、128x128 等...)。

unity unity-dash .desktop

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

我需要安装什么包来为 gedit 开发插件?

我将 Ubuntu 12.04 与 python 2.7.3 和 PyGObject 一起使用,我想在 python 中为 Gedit 开发插件。我在这里找到了有关此类事情的简单教程。

根据教程,我需要Gedit模块与插件界面交互:

from gi.repository import GObject, Gedit
Run Code Online (Sandbox Code Playgroud)

尝试导入 Gedit 模块时,我不断收到导入错误。所以,我的问题是:我需要安装什么包才能获得这个模块?

我试过:gedit-devgedit-plugins

编辑:这是上述语句的完整回溯:

ERROR:root:Could not find any typelib for Gedit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name Gedit
Run Code Online (Sandbox Code Playgroud)

gedit python pygi

7
推荐指数
1
解决办法
1986
查看次数

标签 统计

.desktop ×1

gedit ×1

pygi ×1

python ×1

unity ×1

unity-dash ×1