bus*_*shi 11 icons unity launcher drive
我的双引导系统(win7 / ubuntu 12.04)有一个名为“/share”的 ntfs 格式分区,用于存放我在 win7 和 ubuntu 中使用的文件(例如图片、音乐等)。
我想在启动器中有这个驱动器的符号。但是虽然分区已挂载(挂载点:/media/share)并显示在文件夹的左侧栏中,但启动器中没有图标! 如何将此图标添加到启动器?
(CompizConfig Setting manager >> ubuntu unity plugin >> Experimental >> show devices always”只会显示win-Partition,而不是/share -partition)
创建一个.desktop文件并将其放入.local/share/applications/
当您的设备安装在 时/media/share,让我们将文件命名为mediashare.desktop
该文件的内容如下:
[Desktop Entry]
Version=1.0
Type=Application
Name=Shared Media
Comment=Shared Media
Exec=nautilus /media/share
Icon=system-file-manager
X-Ubuntu-Gettext-Domain=mediashare
Run Code Online (Sandbox Code Playgroud)
完成后,在终端中运行以下命令
gsettings get com.canonical.Unity.Launcher favorites
Run Code Online (Sandbox Code Playgroud)
启动器上的图标列表将显示如下:
['unity://running-apps', 'unity://expo-icon', 'unity://devices']
现在像这样添加 mediashare.desktop 到它:
['unity://running-apps', 'unity://expo-icon', 'unity://devices', 'mediashare.desktop']
现在复制上面的内容并在终端中运行以下内容
gsettings set com.canonical.Unity.Launcher favorites "['unity://running-apps', 'unity://expo-icon', 'unity://devices', 'mediashare.desktop']"
Run Code Online (Sandbox Code Playgroud)
注意引号。
按Alt+ F2,键入unity并按Enter以刷新 unity。
| 归档时间: |
|
| 查看次数: |
16963 次 |
| 最近记录: |