boinc
boinc copied to clipboard
Cannot start BOINC from Snap on Ubuntu (Wayland)
Describe the bug
I just installed the beta version of BOINC from https://snapcraft.io/boinc on an Ubuntu 24.04.2 LTS system using Wayland. I cannot start the boinc.manager process.
Steps to reproduce
- Install BOINC from snap:
sudo snap install --beta boinc - Attempt to run it:
❯ boinc.manager
Gtk-Message: 21:46:22.044: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
21:46:22: Error: Unable to initialize GTK+, is DISPLAY set properly?
(I also tried the following as advised in https://stackoverflow.com/a/32321455)
❯ DISPLAY=0.0 boinc.manager
Gtk-Message: 21:47:03.254: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
21:47:03: Error: Unable to initialize GTK+, is DISPLAY set properly?
Expected behaviour
The BOINC Manager should open correctly.
Screenshots
No response
System information
- OS (using
lsb_release -a): Ubuntu 24.04.2 LTS - BOINC Version (using
boinc --version): 8.2.2 x86_64-pc-linux-gnu - BOINC Version (using
snap list): 8.2.2-3192 - Window System (using
echo $XDG_SESSION_TYPE): wayland
Additional context
No response
I'm afraid, at the moment BOINC Manager required X11 to run. Have you tried this advice https://www.reddit.com/r/linuxquestions/comments/13tlc55/comment/jlwbldc/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button ?
Using GDK_BACKEND=x11 gives me a slightly different error
❯ GDK_BACKEND=x11 boinc.manager
touch: cannot touch '/home/johndoe/snap/boinc/common/.cache/desktop-runtime-date': No such file or directory
Gtk-Message: 00:43:45.412: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
00:43:45: Error: Unable to initialize GTK+, is DISPLAY set properly?
Actually, re-running the command gives me the same error as before:
❯ GDK_BACKEND=x11 boinc.manager
Gtk-Message: 00:46:26.874: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
00:46:26: Error: Unable to initialize GTK+, is DISPLAY set properly?
Combining goth still gives the same result:
❯ DISPLAY=0.0 GDK_BACKEND=x11 boinc.manager
Gtk-Message: 00:46:22.393: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
00:46:22: Error: Unable to initialize GTK+, is DISPLAY set properly?
Hm, what if you try this: https://github.com/keybase/client/issues/19614#issuecomment-569138418 ?
Just tried it, without success:
❯ cat ~/.config/environment.d/.conf
DISPLAY=:0
WAYLAND_DISPLAY=wayland-0
~
❯ boinc.manager
Gtk-Message: 20:56:11.576: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
20:56:11: Error: Unable to initialize GTK+, is DISPLAY set properly?
For the record the DISPLAY environment variable seems to be correctly defined:
❯ echo $DISPLAY
:1
I also tried https://github.com/bitwarden/clients/issues/12119#issuecomment-2753392096
❯ snap connect boinc:wayland
❯ WAYLAND_DISPLAY="${XDG_RUNTIME_DIR:-"/run/user/$(id -u)"}/${WAYLAND_DISPLAY}" boinc.manager
Gtk-Message: 22:34:31.452: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
Authorization required, but no authorization protocol specified
22:34:31: Error: Unable to initialize GTK+, is DISPLAY set properly?
Interesting thing, is that if I shell inside the snap I can see the DISPLAY environment variable
❯ snap run --shell boinc.manager
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
foobar@ubuntu:/home/foobar$ echo $DISPLAY
:1
For the record, I tested again with the latest version and it still fails:
❯ sudo snap install boinc
boinc 8.2.4-3429 from Vitalii Koshura (aenbleidd) installed
❯ boinc.manager
touch: cannot touch '/home/johndoe/snap/boinc/common/.cache/desktop-runtime-date': No such file or directory
Gtk-Message: 09:59:33.197: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
09:59:33: Error: Unable to initialize GTK+, is DISPLAY set properly?