Printing not working with Ubuntu 24.04
Attempting to print shows a dialog "Error Failed to Enumerate Printers".
The following is seen from typora -dev:
_Gtk-Message: 15:11:23.515: Failed to load module "appmenu-gtk-module" Gtk-Message: 15:11:23.516: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it. [99094:0204/151123.783816:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.login1.Manager.Inhibit: object_path= /org/freedesktop/login1: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.812" (uid=1000 pid=99094 comm="/snap/typora/90/typora/Typora --no-sandbox --disab" label="snap.typora.typora (enforce)") interface="org.freedesktop.login1.Manager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=1246 comm="/usr/lib/systemd/systemd-logind" label="unconfined") [99094:0204/151132.860118:ERROR:print_backend_cups.cc(225)] CUPS: Error getting default printer: Bad file descriptor [99094:0204/151132.860140:ERROR:printing_utils.cc(95)] Failed to get default printer name [99094:0204/151218.953408:ERROR:print_backend_cups.cc(225)] CUPS: Error getting default printer: Bad file descriptor [99094:0204/151218.953429:ERROR:printing_utils.cc(95)] Failed to get default printer name _
This is register version 1.9.3. and the OS Ubuntu 24.04. The error occurs for all files and is not new.
relates #6209
Please try https://askubuntu.com/questions/886488/application-installed-as-snap-package-cant-see-printer
Or use the deb / binary version of Typora, instead of snap version
Trying the fix from the link doesn't work.
sudo snap connect typora:cups-control :cups-control
error: snap "typora" has no plug named "cups-control"
I uninstalled the snap version, installed the deb version, reentered license, and tried to print:
$ typora [64771:0218/140916.620192:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018 Segmentation fault (core dumped)
Seems to by fixed in current Typora version 1.10.8. Isue may be closed.