cvfosammmm / Setzer

LaTeX editor written in Python with Gtk
https://www.cvfosammmm.org/setzer/
Other
391 stars 35 forks source link

Issues running the application on Ubuntu 24.04 #404

Closed Gositi closed 4 months ago

Gositi commented 4 months ago

Hi!

I am trying out Setzer (version 62, from the repos) on the new Ubuntu 24.04 (in a VM) and I am facing issues running the app. Instead, I get this:

simon@boxes:~$ setzer
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
/usr/bin/setzer:133: DeprecationWarning: Gtk.Widget.show is deprecated
  self.main_window.show()
bwrap: setting up uid map: Permission denied

** (setzer:10884): ERROR **: 12:02:01.439: Failed to fully launch dbus-proxy: Child process exited with code 1
Trace/breakpoint trap (core dumped)
simon@boxes:~$

After searching around a bit on similar issues I believe it's an instance of https://bugs.launchpad.net/apparmor/+bug/2046844 and copying the workaround at https://github.com/hugolabe/Wike/issues/181 appears to work:

simon@boxes:~$ cat /etc/apparmor.d/setzer
# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"

abi <abi/4.0>,
include <tunables/global>

profile setzer /usr/bin/setzer flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/setzer>
}
simon@boxes:~$ 

I have no idea exactly what this does though, besides that it somehow makes apparmor happy!

Since I am running a slightly older version you are maybe already aware about this, but if not I thought you should know! In any case, the version on the Ubuntu repos should be updated.

cvfosammmm commented 4 months ago

Thanks for reporting this. In newer versions the deprecated function is no longer used. Other than that, I think this belongs in the Ubuntu bugtracker.

Gositi commented 4 months ago

Ok, thanks for the reply. I'm not very used to reporting issues, but I will take it to the Ubuntu bugtracker.