Thanks to visit codestin.com
Credit goes to github.com

Skip to content

After commit 'Prefer color-scheme from...' generated AppImage won't start #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
giuspen opened this issue Sep 28, 2023 · 10 comments · Fixed by #58
Closed

After commit 'Prefer color-scheme from...' generated AppImage won't start #57

giuspen opened this issue Sep 28, 2023 · 10 comments · Fixed by #58

Comments

@giuspen
Copy link

giuspen commented Sep 28, 2023

After the commit 'Prefer color-scheme from...' my generated AppImage won't start.

I had to peg my build script to the latest good version https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/97290a3e374381e9fa7983ba098729a37076f3ed/linuxdeploy-plugin-gtk.sh as shown in giuspen/cherrytree@2827e3f

The thing is that nothing is printed at all on the terminal, it just does nothing (and nothing happens)

penoneg@cinnamon:~/git/cherrytree$ ./build/CherryTree-x86_64.AppImage 
penoneg@cinnamon:~/git/cherrytree$ 

While using the latest good version:

penoneg@cinnamon:~/git/cherrytree$ ./build/CherryTree-1.0.2-x86_64.AppImage 
[2023-09-28 21:11:44.619] [   ] [debug] /home/penoneg/.config/cherrytree/config.cfg parsed
...
@TheAssassin
Copy link
Member

Could you provide AppImages for A/B testing, please?

@giuspen
Copy link
Author

giuspen commented Sep 28, 2023

Sure I will provide build logs and resulting binaries shortly

@giuspen
Copy link
Author

giuspen commented Sep 28, 2023

The build logs are binary equivalent, the resulting binaries are not (A=master; B=97290a3e374381e9fa7983ba098729a37076f3ed):
https://www.giuspen.net/software/CherryTree-A-x86_64.AppImage
https://www.giuspen.net/software/CherryTree-B-x86_64.AppImage

@TheTumultuousUnicornOfDarkness
Copy link
Contributor

I am not able to reproduce this issue on my computer: both A and B start.
@giuspen can you run ./CherryTree-B-x86_64.AppImage --appimage-extract then bash -x ./squashfs-root/AppRun and provide us the output of last command, please?

@giuspen
Copy link
Author

giuspen commented Sep 30, 2023

The failing one is A and its output is:

penoneg@cinnamon:/tmp$ bash -x ./squashfs-root/AppRun
+ set -e
+++ dirname ./squashfs-root/AppRun
++ readlink -f ./squashfs-root
+ this_dir=/tmp/squashfs-root
+ source /tmp/squashfs-root/apprun-hooks/linuxdeploy-plugin-gtk.sh
+++ dbus-send --session --dest=org.freedesktop.portal.Desktop --type=method_call --print-reply --reply-timeout=1000 /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read string:org.freedesktop.appearance string:color-scheme
+++ tail -n1
+++ cut -b35-
+++ cut '-d ' -f2
++ COLOR_SCHEME=
++ '[' -z '' ']'
+++ gsettings get org.gnome.desktop.interface color-scheme
++ COLOR_SCHEME=
penoneg@cinnamon:/tmp$ 

@giuspen
Copy link
Author

giuspen commented Sep 30, 2023

While the succeeding one:

penoneg@cinnamon:/tmp$ bash -x ./squashfs-root/AppRun
+ set -e
+++ dirname ./squashfs-root/AppRun
++ readlink -f ./squashfs-root
+ this_dir=/tmp/squashfs-root
+ source /tmp/squashfs-root/apprun-hooks/linuxdeploy-plugin-gtk.sh
++ case "$(gsettings get org.gnome.desktop.interface color-scheme 2> /dev/null)" in
+++ gsettings get org.gnome.desktop.interface color-scheme
++ GTK_THEME_VARIANT=light
++ APPIMAGE_GTK_THEME=Adwaita:light
++++ realpath ./squashfs-root/AppRun
+++ dirname /tmp/squashfs-root/AppRun
++ export APPDIR=/tmp/squashfs-root
++ APPDIR=/tmp/squashfs-root
++ export GTK_DATA_PREFIX=/tmp/squashfs-root
++ GTK_DATA_PREFIX=/tmp/squashfs-root
++ export GTK_THEME=Adwaita:light
++ GTK_THEME=Adwaita:light
++ export GDK_BACKEND=x11
++ GDK_BACKEND=x11
++ export XDG_DATA_DIRS=/tmp/squashfs-root/usr/share:/usr/share:/usr/share/cinnamon:/usr/share/gnome:/home/penoneg/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
++ XDG_DATA_DIRS=/tmp/squashfs-root/usr/share:/usr/share:/usr/share/cinnamon:/usr/share/gnome:/home/penoneg/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
++ export GSETTINGS_SCHEMA_DIR=/tmp/squashfs-root//usr/share/glib-2.0/schemas
++ GSETTINGS_SCHEMA_DIR=/tmp/squashfs-root//usr/share/glib-2.0/schemas
++ export GI_TYPELIB_PATH=/tmp/squashfs-root//usr/lib/girepository-1.0
++ GI_TYPELIB_PATH=/tmp/squashfs-root//usr/lib/girepository-1.0
++ export GTK_EXE_PREFIX=/tmp/squashfs-root//usr
++ GTK_EXE_PREFIX=/tmp/squashfs-root//usr
++ export GTK_PATH=/tmp/squashfs-root//usr/lib/gtk-3.0
++ GTK_PATH=/tmp/squashfs-root//usr/lib/gtk-3.0
++ export GTK_IM_MODULE_FILE=/tmp/squashfs-root//usr/lib/gtk-3.0/3.0.0/immodules.cache
++ GTK_IM_MODULE_FILE=/tmp/squashfs-root//usr/lib/gtk-3.0/3.0.0/immodules.cache
++ export GDK_PIXBUF_MODULE_FILE=/tmp/squashfs-root//usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
++ GDK_PIXBUF_MODULE_FILE=/tmp/squashfs-root//usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
+ exec /tmp/squashfs-root/AppRun.wrapped
Gtk-Message: 22:26:54.934: Failed to load module "appmenu-gtk-module"
[2023-09-30 22:26:54.972] [   ] [debug] /home/penoneg/.config/cherrytree/config.cfg parsed
[2023-09-30 22:26:55.251] [   ] [debug] Node name: bla2

@TheTumultuousUnicornOfDarkness
Copy link
Contributor

Well, it looks it was also buggy before anyway:

++ case "$(gsettings get org.gnome.desktop.interface color-scheme 2> /dev/null)" in
+++ gsettings get org.gnome.desktop.interface color-scheme

gsettings get org.gnome.desktop.interface color-scheme is exiting with an error code is this is not handled properly.

@TheTumultuousUnicornOfDarkness
Copy link
Contributor

PR #58 pending approval.

@giuspen
Copy link
Author

giuspen commented Oct 1, 2023

Thanks!

@TheTumultuousUnicornOfDarkness
Copy link
Contributor

Fix merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants