要在Ubuntu中,手動新增App應用程式,可以在 ~/.local/share/applications 目錄中,編輯一個 *.desktop 的檔案。
以 Bottles 這個 Wine 容器管理 App 來說,可以在這個目錄中,新增一個檔案叫做 bottles.desktop的檔案。
然後編輯以下內容:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=51.24
Type=Application
Terminal=false
Exec=/usr/bin/flatpak run com.usebottles.bottles
Name=Bottles
Comment=Bottles lets you run Windows software on Linux
Icon=/home/hawk/.local/share/flatpak/app/com.usebottles.bottles/x86_64/stable/active/files/share/app-info/icons/flatpak/128x128/com.usebottles.bottles.png
存檔之後,就會在程式集裡面看到一個 Bottles 的應用程式圖示。
沒有留言:
張貼留言