min*_*ves 5 flatpak ubuntu-dock 18.04
如果我将软件安装为 flatpak 应用程序,要使用它,我必须像这样从 shell 启动它 flatpak run org.name.appname
如何将图标添加到 ubuntu Dock?我可以制作这样的脚本:
#!/bin/bash
flatpak run org.audacityteam.Audacity
Run Code Online (Sandbox Code Playgroud)
但是,如何将这个 shell 脚本添加到停靠?
$HOME/.local/share/applications/audacity.desktop使用以下内容创建一个文件:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Audacity
Exec=/usr/bin/flatpak run org.audacityteam.Audacity
Icon=__path_to_the_icon_on_your_filesystem__
Run Code Online (Sandbox Code Playgroud)
之后启动器将出现在破折号中:按 super (windows) 并输入“audacity”并启动应用程序。当audacity 运行时,右键单击它在dock 上的图标并选择“添加到收藏夹”。
| 归档时间: |
|
| 查看次数: |
2944 次 |
| 最近记录: |