Running AIR Apps in XFCE
If you’re running the XFCE linux desktop environment and you’re attempting to run air applications; you’ve likely run into the beautiful message:
Unknown desktop manager, only Gnome and KDE are supported.
Not only is this aggravating since AIR is meant to be cross platform but even more so that it can’t simply handle booting the air application or using specific functionality.
If you are looking for a workaround, I do have one. It is not the most elegant solution in the world and will require you to save all of your applications into the same area, for instance, my air applications are in /opt/air. Not in order to run most of these applications ensure that you have keyring installed. The main brunt of the workaround is to simply: export GNOME_DESKTOP_SESSION_ID=”xfce”.
Now, while you can run the export in the terminal, you will need to likely run it every time that you boot up an air application. My change was to create a bootstrap file for running the air applications. If you pass in the air applications name as it is in the file system, it will handle running the app. Now the workaround:
1 2 3 4 5 6 7 8
#!/bin/sh if [ -z "$1" ]; then echo "Please specify an application." return 0 fi export GNOME_DESKTOP_SESSION_ID="xfce" /opt/air/$1/bin/$1 &
As you can tell this is a quick fix hack and I really did not put a lot of rigger into the handling of unknown files, handling spaces etc. You can work around having spaces by using a wildcard character in place of the space.