You are not logged in.
I've installed arduino-ide, it starts and I can edit sketches and upload them to the Arduino. However, I can't save or open any of the sketches. Initially I got errors about org.freedesktop.portal.FileChooser not being found. After installing xdg-desktop-portal, xdg-desktop-portal-gtk and xdg-desktop-portal-wlr those errors went away but I still can't open/save files. Most remaining error messages are about handlers not being registered but I don't really know what they refer to. From some online search I thought it may have to do with electron. Initially arduino-ide was running under XWayland so I tried to run it natively under Wayland by adding --ozone-platform-hint=auto. It did run under Wayland (no xeyes movement) but the same errors occurred.
I don't really know what else to check to figure out what's wrong. Does anybody know what could be the issue?
Here's a pastebin of the messages I get when starting arduino-ide (using xwayland). I'm on Arch Linux with Wayland/Sway. All packages are up-to-date.
Thanks for your help!
Offline
Does anybody have an idea?
Offline
Are the correct environments for setting this up loaded? Do you use the sample sway config as the baseline? https://wiki.archlinux.org/title/XDG_De … ly_on_sway
Online
Hey, thanks for your reply.
You mean the environment variables XDG_CURRENT_DESKTOP and WAYLAND_DISPLAY, right? They are set to 'sway' and 'wayland-1'. The end of my config file contains the line 'include /etc/sway/config.d/*' and that folder contains the default '50-systemd-user.conf' file.
I'm not using the default config file but an edited version. However, I've just tried with the default file and the same errors occur.
Here's the output of 'systemctl --user show-environment', if that helps:
HOME=/home/xyz
LANG=en_GB.UTF-8
LOGNAME=xyz
MAIL=/var/spool/mail/xyz
PATH=/usr/local/bin:/usr/bin
SHELL=/bin/bash
USER=xyz
XDG_RUNTIME_DIR=/run/user/1000
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DISPLAY=:0
SSH_AUTH_SOCK=/run/user/1000/gcr/ssh
SWAYSOCK=/run/user/1000/sway-ipc.1000.1029.sock
WAYLAND_DISPLAY=wayland-1
XDG_CURRENT_DESKTOP=sway
Thanks for your help!
Offline
So I didn't figure out what caused the issue. Instead of the pacman package I'm now using the appimage from the arduino website, which seems to work...
Offline