检查desktop的Exec=

情况就是这样,但无法打开。但是终端没问题。

情况就是这样,但无法打开。但是终端没问题。
gtk4-demo 有没有在path路径下,或者gtk4-demo的路径有没有在环境变量path里?
meson-log.txt
Compiler stderr:
Failed to guess install tag for /usr/local/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h
Failed to guess install tag for /usr/local/share/glib-2.0/gdb/glib_gdb.py
Failed to guess install tag for /usr/local/share/gdb/auto-load/usr/local/lib/x86_64-linux-gnu/libglib-2.0.so.0.7300.0-gdb.py
Failed to guess install tag for /usr/local/share/glib-2.0/gdb/gobject_gdb.py
Failed to guess install tag for /usr/local/share/gdb/auto-load/usr/local/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7300.0-gdb.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/config.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/init.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/codegen.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/codegen_main.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/codegen_docbook.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/codegen_rst.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/dbustypes.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/parser.py
Failed to guess install tag for /usr/local/share/glib-2.0/codegen/utils.py
Failed to guess install tag for /usr/local/share/bash-completion/completions/gapplication
Failed to guess install tag for /usr/local/share/bash-completion/completions/gdbus
Failed to guess install tag for /usr/local/share/bash-completion/completions/gio
Failed to guess install tag for /usr/local/share/bash-completion/completions/gsettings
Failed to guess install tag for /usr/local/share/bash-completion/completions/gresource
Failed to guess install tag for /usr/local/share/glib-2.0/schemas/gschema.dtd
Failed to guess install tag for /usr/local/share/gettext/its/gschema.loc
Failed to guess install tag for /usr/local/share/gettext/its/gschema.its
Failed to guess install tag for /usr/local/share/glib-2.0/valgrind/glib.supp
Failed to guess install tag for /usr/local/share/aclocal/glib-2.0.m4
Failed to guess install tag for /usr/local/share/aclocal/glib-gettext.m4
Failed to guess install tag for /usr/local/share/aclocal/gsettings.m4
Failed to guess install tag for /usr/local/lib/x86_64-linux-gnu/cmake/harfbuzz/harfbuzz-config.cmake
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/test-image.png
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/test-animation.gif
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/1_partyanimsm2.gif
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/test-animation.ani
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/icc-profile.jpeg
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/icc-profile.png
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/dpi.jpeg
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/dpi.png
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/dpi.tiff
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/premature-end.png
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/premature-end.jpg
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/bug143608-comment.jpg
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/bug725582-testrotate.jpg
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/bug725582-testrotate.png
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/bug753605-atsize.jpg
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/cve-2015-4491.bmp
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/large.png
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/large.jpg
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/bug775218.jpg
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/test-image.pixdata
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/test-image-rle.pixdata
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/bug775693.pixdata
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/bug775229.pixdata
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/aero.gif
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/circular-table.gif
Failed to guess install tag for /usr/local/libexec/installed-tests/gdk-pixbuf/issue70.jpg
Failed to guess install tag for /usr/local/lib/x86_64-linux-gnu/graphene-1.0/include/graphene-config.h
Failed to guess install tag for /usr/local/share/glib-2.0/schemas/org.gtk.gtk4.Settings.FileChooser.gschema.xml
Failed to guess install tag for /usr/local/share/glib-2.0/schemas/org.gtk.gtk4.Settings.ColorChooser.gschema.xml
Failed to guess install tag for /usr/local/share/glib-2.0/schemas/org.gtk.gtk4.Settings.EmojiChooser.gschema.xml
Failed to guess install tag for /usr/local/share/glib-2.0/schemas/org.gtk.gtk4.Settings.Debug.gschema.xml
Failed to guess install tag for /usr/local/share/applications/org.gtk.Demo4.desktop
Failed to guess install tag for /usr/local/share/glib-2.0/schemas/org.gtk.Demo4.gschema.xml Failed to guess install tag for /usr/local/share/gettext/its/gtk4builder.loc
Failed to guess install tag for /usr/local/share/gettext/its/gtk4builder.its
Failed to guess install tag for /usr/local/share/gtk-4.0/valgrind/gtk.supp
gtk4.7.0的meson-log.txt 我重新
sudo ninja uninstall
meson build
后重新生成的。sudo meson build 也一样是这个。
另外 gtk4-demo 在PATH 里,终端可以运行
最后找到一种失败的原因
~$ xdg-open 'https://www.baidu.com'
main.go:75: open failed: failed to get appInfo
$ xdg-open .
main.go:75: open failed: failed to get appInfo
大概率就是这个原因了。
最后找到一种失败的原因
~$ xdg-open 'https://www.baidu.com'
main.go:75: open failed: failed to get appInfo
$ xdg-open .
main.go:75: open failed: failed to get appInfo
大概率就是这个原因了。
你吧exec弄个全路径试一试
你吧exec弄个全路径试一试
试了无效。
个人感觉是环境变量的问题,就是xdg和GTK4的设置不兼容。
Popular Ranking
ChangePopular Events
More

中文 
嗯 ,新手,昨天才从ubuntu22转过来,折腾了一天配置好了GTK4的环境 ,能够正常编译执行一些例子。
我是从源码编译安装的GTK4,编译成功,运行测试1400多有23个失败22个跳过,算是成功了吧。
安装后在启动器中能看到gtk demo等几个GTK4的程序,但是在启动器点击后没有反应,在文件夹中双击等操作也无反应,但是终端中用命令方式能正常打开。
请问如何设置才能使这类程序能够在启动器中运行,或者双击快捷方式打开?