Skip to content
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

Problems running Python GTK #51

Closed
AlanGriffiths opened this issue Jun 21, 2023 · 5 comments
Closed

Problems running Python GTK #51

AlanGriffiths opened this issue Jun 21, 2023 · 5 comments

Comments

@AlanGriffiths
Copy link
Contributor

I'm seeing errors that I don't see with GNOME:

  File "/home/alan/CLionProjects/mir-ci/frame/clients/drag_and_drop_demo.py", line 84, in add_item
    pixbuf = Gtk.IconTheme.get_default().load_icon(icon_name, 16, 0)
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'help-about' not present in theme Adwaita (0)
@AlanGriffiths
Copy link
Contributor Author

AlanGriffiths commented Jun 21, 2023

This has the feel of being about dbus activation. On GNOME I see the following activations:

$ dbus-run-session python clients/drag_and_drop_demo.py 
dbus-daemon[1471499]: [session uid=1000 pid=1471499] Activating service name='org.a11y.Bus' requested by ':1.1' (uid=1000 pid=1471500 comm="python clients/drag_and_drop_demo.py " label="snap.clion.clion (complain)")
dbus-daemon[1471499]: [session uid=1000 pid=1471499] Successfully activated service 'org.a11y.Bus'
dbus-daemon[1471499]: [session uid=1000 pid=1471499] Activating service name='org.gtk.vfs.Daemon' requested by ':1.0' (uid=1000 pid=1471500 comm="python clients/drag_and_drop_demo.py " label="snap.clion.clion (complain)")
dbus-daemon[1471499]: [session uid=1000 pid=1471499] Successfully activated service 'org.gtk.vfs.Daemon'
fusermount3: failed to access mountpoint /run/user/1000/gvfs: Permission denied
dbus-daemon[1471524]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=1471500 comm="python clients/drag_and_drop_demo.py " label="snap.clion.clion (complain)")
dbus-daemon[1471524]: Successfully activated service 'org.a11y.atspi.Registry'
SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry

On Miriway:

$ dbus-run-session python clients/drag_and_drop_demo.py 
dbus-daemon[1476576]: [session uid=1000 pid=1476576] Activating service name='org.gtk.vfs.Daemon' requested by ':1.0' (uid=1000 pid=1476577 comm="python clients/drag_and_drop_demo.py " label="snap.miriway.miriway (complain)")
dbus-daemon[1476576]: [session uid=1000 pid=1476576] Successfully activated service 'org.gtk.vfs.Daemon'
fusermount3: failed to access mountpoint /run/user/1000/gvfs: Permission denied

and then the stack trace

@AlanGriffiths
Copy link
Contributor Author

On further investigation, NO_AT_BRIDGE=1 in the Miriway session is what causes the different activations. But that doesn't stop the app running on GNOME

@AlanGriffiths
Copy link
Contributor Author

Hmm, "Adwaita" does indeed not contain "help-about", and nor does "hicolor" (which index.theme says it "Inherits").

So I understand why it doesn't work on Miriway. But not why it works running on GNOME.

@AlanGriffiths
Copy link
Contributor Author

Of course! On GNOME the default theme is Yaru (which has the desired icon)

@AlanGriffiths
Copy link
Contributor Author

So, there's a possible issue in my understanding of theme setting (e.g. GDK_THEME=Yaru python clients/drag_and_drop_demo.py doesn't work), but this specific problem isn't really something that Miriway should fix

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

No branches or pull requests

1 participant