emacs-snap
emacs-snap copied to clipboard
xdg-open undefined symbol in GLIBC_PRIVATE
sergiusens@cuivienen:~$ snap run --shell emacs
sergiusens@cuivienen:~$ xdg-open https://ubuntu.com
gio: symbol lookup error: /snap/emacs/2249/usr/lib/x86_64-linux-gnu/gio/modules/../../../../../lib/x86_64-linux-gnu/libpthread.so.0: undefined symbol: __libc_pthread_init, version GLIBC_PRIVATE
Workaround
sergiusens@cuivienen:~$ unset GIO_MODULE_DIR
sergiusens@cuivienen:~$ xdg-open https://ubuntu.com
sergiusens@cuivienen:~$ Gtk-Message: 22:07:59.367: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
I added the following to early-init.el
to workaround this
https://github.com/alexmurray/emacs-snap/blob/master/site-lisp/site-start.el#L16C1-L21C16
Hmmmm I'm surprised the code from site-lisp.el doesn't appear to be working (I realise it won't run for the snap run --shell emacs
case but it should get run automatically by emacs on startup for the eshell example)
The only thing I can say that changed is that I blasted away my .emacs.d (moving away from my one month of spacemacs) and retangled my literate emacs.org (which had been previously working) and this started happening.
This seems very similar to https://github.com/alexmurray/emacs-snap/issues/73#issuecomment-1774075962 - which was due to some cached variables apparently. Can you try make sure there are no old .elc files or similar? Cheers