我已经通过 flatpak 安装了 Gnome Boxes、Gnome Builder 和 Peek,当我单击应用程序菜单中的应用程序时,它们无法启动。
我不知道为什么,所以我只是查看/var/lib/flatpak/exports/share/applications
文件中的 .desktop 并进行更改,Terminal=true
但它没有显示任何终端。
然后我尝试Exec
在终端中运行该参数,它工作正常,没有错误。
最后我删除了所有标志,Exec
但仍然什么也没做
任何人有同样的问题吗?有什么解决办法吗?
或者至少有人知道如何调试 .desktop 文件?
侏儒盒子
[Desktop Entry]
Name=Boxes
GenericName=Virtual machine viewer/manager
Comment=View and use virtual machines
Keywords=virtual machine;vm;
Exec=/usr/bin/flatpak run org.gnome.Boxes @@u %U @@
Icon=org.gnome.Boxes
Terminal=true
Type=Application
StartupNotify=true
Categories=GNOME;GTK;System;Development;Emulator;
MimeType=application/x-cd-image;
DBusActivatable=true
X-Flatpak=org.gnome.Boxes
侏儒建造者
[Desktop Entry]
Name=Builder
Comment=Build software for GNOME
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-builder --file-forwarding org.gnome.Builder @@u %U @@
Icon=org.gnome.Builder
DBusActivatable=true
StartupNotify=true
Terminal=false
Type=Application
Categories=GNOME;GTK;Development;IDE;
Keywords=Build;Develop;
MimeType=text/x-c;text/x-csrc;text/x-changelog;text/x-chdr;text/x-c++hdr;text/x-python;application/x-python;application/javascript;application/x-javascript;text/x-javascript;text/javascript;text/x-js;text/x-shellscript;application/x-shellscript;text/x-sh;text/x-vala;text/x-makefile;text/x-c++;text/x-cpp;text/x-c++src;text/css;application/x-gnome-app-info;application/x-desktop;text/x-go;text/html;text/x-markdown;application/json;application/x-m4;application/xml;text/xml;application/x-yaml;text/x-sql;application/x-ruby;text/x-ruby;text/x-pkg-config;text/x-lua;text/x-php;application/x-php;text/x-php-source;application/x-php-source;text/x-perl;application/x-perl;
X-Flatpak-RenamedFrom=gnome-builder;
Actions=new-window;create-project;clone-repo;new-editor;dspy;
X-Flatpak=org.gnome.Builder
[Desktop Action new-window]
Name=Open a Project
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-builder org.gnome.Builder --greeter
[Desktop Action create-project]
Name=Start New Project
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-builder org.gnome.Builder --create-project
[Desktop Action clone-repo]
Name=Clone Repository
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-builder org.gnome.Builder --clone
[Desktop Action new-editor]
Name=New Editor Workspace
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-builder org.gnome.Builder --editor
[Desktop Action dspy]
Name=D-Bus Inspector
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-builder org.gnome.Builder --dspy
窥视
[Desktop Entry]
Name=Peek
Exec=/usr/bin/flatpak run com.uploadedlobster.peek @@u %U @@
GenericName=Animated GIF recorder
Comment=Record short animated GIF images from your screen
Keywords=screencast;screen recorder;screen capture;GIF;WebM;APNG;
Icon=com.uploadedlobster.peek
Type=Application
Categories=GTK;GNOME;Graphics;2DGraphics;AudioVideo;Video;Recorder;
StartupNotify=true
Terminal=true
DBusActivatable=true
X-Flatpak=com.uploadedlobster.peek
基本操作系统信息
Distro: Void Linux (musl)
Architecture: x64
DE: Gnome 40 (with Wayland)
答案1
解决方案很简单,删除 .desktop 文件的符号链接并手动创建另一个。
新的 Gnome Boxes .desktop 文件
[Desktop Entry]
Name=Boxes
Icon=org.gnome.Boxes
Exec=/usr/bin/flatpak run org.gnome.Boxes
Comment=Gnome boxes
Type=Application