User can't start Xojo

I had to replace the hard disk in my Linux computer with an SSD. So I reinstalled my Arch Linux and then Xojo. Everything went smoothly. In the Linux there is only one user “deff”. The user is assigned to the groups “deff”, “wheel” and “users”.

Unfortunately, I can no longer start Xojo with my Linux user named “deff”. But I can start Xojo in the terminal with “sudo ./Xojo”.

Somehow, somewhere my user “deff” seems to have an authorization problem. But where?

Does anyone have any advice for me?

Bildschirmaufzeichnung vom 2025-03-11 06-52-46.zip (1.8 MB)

If you start Xojo in the terminal with just

./Xojo

Do you get any errors?

No, there are no messages. With only ./Xojo I get the same result as shown in the screen recording.

No messages in the terminal window? That sounds strange.
On macOS I get a lot of messages.

Anyway, you could try ldd command line tool on the Xojo executable to check if some dependencies are missing.

I‘ve checked it. All is ok

How and where did you install Xojo?

I’ve installed Xojo in /opt/xojo with

sudo -s
tar -zxvf /home/deff/Downloads/xojo2024r42.tgz
cd xojo2024r4.2
mv 2024r4.2_64485.desktop /usr/share/applications/2024r4.2_64485.desktop

After that I’ve edited the desktop file with “sudo vim” to get this:

# Move this file to /usr/share/applications/
[Desktop Entry]
Encoding=UTF-8
Name=Xojo 2024r4.2
Name[de_DE]=Xojo 2024r4.2
Comment=Xojo 2024 Release 4.2
Comment[de_DE]=Xojo 2024 Release 4.2
Exec=/opt/xojo/xojo2024r4.2/Xojo %F
Icon=/opt/xojo/xojo2024r4.2/xojo.xpm
Terminal=false
Type=Application
MimeType=application/vnd.xojo.project.binary;application/vnd.xojo.project.normal;application/vnd.xojo.project.xml
Categories=Development;Programming;Building;IDE

My Xojo desktop files are this:

-rw-r--r-- 1  997 wheel   443 10. Mär 07:35 2024r3_63767.desktop
-rw-r--r-- 1  997 wheel   455  8. Mär 19:05 2024r4.2_64485.desktop

At this moment I wonder where the owner 997 comes from.

What’s the owner/permissions on these directories

/opt
/opt/xojo
/opt/xojo/xojo2024r4.2
drwxr-xr-x   3 root root  4096  8. Mär 08:49 opt
drwxr-xr-x 4 deff wheel 4096 10. Mär 07:29 xojo
drwxr-xr-x 10 deff wheel 4096  8. Mär 14:14 xojo2024r4.2

Initially they all have had “root root”. I’ve changed the directories and files below “/opt” to “deff wheel”.

I stopped installing Xojo in /opt and instead put it in an Applications folder in my home directory. Less permissions issues and if I change distros or wipe my OS it stays intact. I had hang ups with Android and plugins that I no longer deal with now. (It is also where I keep all my appImages)

If you extract to a directory that’s fully under your and not sudo permissions I wonder if it will work?

1 Like

I will try this!

This is a user ID. In case there is no user on the system with this is ID the number is shown instead of a name.

1 Like

I did not reinstall Xojo, but looked for the error in the existing installation.

In the screen recording of my first message you first see the popup “Loading Frameworks”

and then another window flashes up briefly (it is “Getting Started”).

If I press the Enter key in the right place at the end of the “Loading Frameworks” popup, I get the “Choose a Project” window. From here on I can load a project with my normal user “deff”.

However, if I click on “Documentation”, “Welcome to Xojo” or “What’s new in Xojo?” in the Help menu, Xojo closes immediately.

At the moment I have no idea where the problem could lie.

Are you running Xorg?

Wayland may not work correctly.

Yes, Wayland is running.

I have just activated the line WaylandEnable=false in /etc/gdm/custom.conf. Now I can start Xojo.

If I now click on “Documentation”, “Welcome to Xojo” or “What’s new in Xojo?” in the help menu, the corresponding window opens without content.

I have reset /etc/gdm/custom.conf to its original state.

On the Arch-Linux login screen, I can use the gear to choose whether I start with Xorg or Wayland.

If I start with Xorg, I can call up Xojo. In this case, however, the documentation window and the other windows from the help menu remain empty.

That’s a clear arrow pointing at HTMLViewer. They all use that control and if the libraries are not installed, Xojo crashes.

Which libraries could that be? I thought that all the necessary libraries were actually installed.

From the system requirements:

libwebkit2gtk - used by DesktopHTMLViewer and thus the Documentation window and Messages panel

If you run Xojo from the command line, it should show the actual thing causing the crash on the terminal when it does crash.

I’ve installed webkit2gtk and the libwebkit2gtk is available in the system.

Now when I log in to Linux with Xorg and then start Xojo in the terminal, I get error messages, some of them in German.

Sometimes the message “Speicherzugriffsfehler (Speicherabzug geschrieben)”.

But when I call up the Xojo documentation, I get an empty window every time and the message “Failed to create GBM buffer of size 900x900: Das Argument ist ungültig
” in the terminal every time.