Getting Chromium Web Browser to Open Citrix Receiver in OpenSuse

I had already installed Citrix ICA Client on my OpenSuse machine. You get the software here:

http://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-130.html

This worked on Firefox for awhile, but policies were changed for Windows only at the site. I did noticed that Chromium still used the old standard. When you login into your Citrix launch site with Chromium and click on an icon, it will download a file like “launch.ica” and when I tried to launch it would just open in Kwrite.

To fix this I followed the instructions for Ubuntu - these instructions mostly work, I’m giving credit to the original poster of the solution in that forum: http://ubuntuforums.org/showthread.php?t=1645173

Here are the actions that worked for me in OpenSuse 13.1

Creating MIME types for Citrix ICA Client

  1. Create new file /usr/share/applications/wfica.desktop

[Desktop Entry]
Name=Citrix ICA client
GenericName=Citrix ICA Client
Comment=Citrix nFuse session file
Categories=Application
Encoding=UTF-8
Exec=/opt/Citrix/ICAClient/wfica
Icon=wfica
Terminal=false
Type=Application
MimeType=application/x-ica

  1. Create new file /usr/share/mime/packages/ica.xml

<?xml version=“1.0” encoding=“utf-8”?>
<mime-info xmlns=“http://www.freedesktop.org/standards/shared-mime-info”>
<mime-type type=“application/x-ica”>
<comment>Citrix ICA launcher</comment>
<glob pattern="*.ica"/>
</mime-type>
</mime-info>

  1. su into root and issue this command

update-desktop-database && sudo update-mime-database /usr/share/mime

  1. Run the following from the command line:

xdg-mime install --novendor /usr/share/mime/packages/ica.xml

xdg-mime default wfica.desktop application/x-ica

  1. At this point, if you click on a browser link that should launch an application using Citrix, it will download a file called something like “launch.ica”. If you click on the little arrow next to this file, and choose “Always open files of this type”, then choose “Open”, it should work.

This was very helpful. Thanks for posting it.

My environment is opensuse 13.1 using the Mate desktop and Firefox web browser. I was researching mimetypes (i.e., where do they come from, defaults, how to add or change them). In KDE this was done via an app in Personal Settings/Configure Desktop -> File Associations.

I gleamed a lot of info here:
https://wiki.archlinux.org/index.php/Default_Applications

The way presented here is definitely more advanced. If you wanted to just impact a single user, a right-click “Open With” would do the trick. I suspect all file browsers might operate in a similar fashion. Caja, Mate’s file browser, shows first the Default application, a horizontal line, then Other applications that handle the mimetype with the last entry being, “Open With Other Application”. This info is also presented when you right-click and select “Properties” -> “Open With”. As far as I can tell this creates a X.desktop (where X is the appname) file and updates mimeapps.list in $HOME/.local/share/applications/. Firefox Preferences -> Applications has a similar dialog with the same end results.

A man -k xdg shows other xdg commands which I’m just starting to read about. xdg-mime query filetype FILE is particularly helpful in this case.

The nice thing about opensuse is, they put lots of documentation in their files.