在旧版本中,在我的桌面上创建一个启动器很容易。我所要做的就是在我的桌面上点击右键,选择"创建启动器" 选项。
现在我怎样才能创建这样的启动器?
如果你仍然想使用这个,旧的GUI对话框仍然可用。
使用ALT+F2 输入
gnome-desktop-item-edit --create-new ~/Desktop
这将启动旧的GUI对话框并在你的桌面上创建一个启动器。
前提条件
如果你已经安装了gnome-shell/gnome-fallback,gnome-desktop-item-edit
会自动安装。 如果你之前安装了`gnome-tweak-tool',它也会自动安装。
另外,你也可以安装旧的gnome-panel,而不需要太多的东西。
sudo apt-get install --no-install-recommends gnome-panel
以后你可以把MyLauncher.Desktop
文件从~/Desktop
移到~/.local/share/applications/
,使其出现在所有应用程序仪表板上,或者移到/usr/local/share/applications
,使其对所有用户可用(感谢@JonBently';的评论)。
你可以手动操作。建立一个新的文本文件,命名为something.desktop,并在其中写上这些内容。
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=command to run here
Name=visible name here
Comment=comment here
Icon=icon path here
别忘了让该文件可执行(chmod +x something.desktop
)。