Before I recreate the wheel here, does anyone have an old RS install on a Debian Linux system? I’m looking for the desktop file definition to create a shareable xojo2017r2.desktop file so that Xojo is placed into the start menu and the file types are properly recognized…
There are several steps to make Linux OS to recognize xojo filetype and can be opened directly with xojo. Please keep in the mind that I’m using Arch Linux (www.archlinux.org) and not debian-based distro.
STEP 1: Make OS to recognize xojo_binary_project filetype
Create an XML file to define a new mimetype inside ~/.local/share/mime/packages or /usr/share/mime/packages directory. In my system, I’m using xojo.xml to define all Xojo-related filetype.
OS will automatically recognize *.xojo_binary_project
STEP 2: Add icon to recognize xojo_binary_project
Create application-x-xojo-binaryproject icon ( SVG or PNG).
Put the file inside your current icon theme based on the created icon size.
STEP 3: Tell OS that Xojo IDE can open xojo_binary_project file.
Now, create xojo.desktop file and put this code
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Xojo
Comment=A RAD environment based on BASIC that compiles native applications for Windows, Mac, Linux, and the web.
Exec=/opt/xojo/Xojo %U
Icon=xojo
Terminal=false
StartupNotify=false
Categories=Application;Development;
MimeType=application/x-xojo-binaryproject
Name[en_US]=Xojo
Put the file inside /usr/share/applications directory.
Restart your system if the changes are not applied yet.
Your OS should now recognize both filetype icon and Xojo IDE.
Thanks, Asis. I know all of that. I was just hoping that someone had the old vnd.realstudio*.xml and vnd.xojo*.xml mime type files around with the defined types so I didn’t have to reinvent the wheel. I want to share the XML and .desktop files with new Linux users (since Xojo no longer offers the .deb package that used to include this info).
I’ve submitted a feature request - <https://xojo.com/issue/46267>, but I figured I’d provide them externally for anyone getting into Xojo on Linux.