You are not logged in.

#1 2022-08-16 02:10:46

branthebuilder
Member
Registered: 2016-10-01
Posts: 67

[SOLVED] Opening Citrix .ica launches firefox with empty tab

I suspect I'm only noticing this issue now because I'm no longer using Firefox as my regular browser but Vivaldi. When I open an .ica file from the Vivaldi download dialog box there is a pause as Firefox gets opened to a blank tab and then the ICAClient launches and the application runs fine. I can close Firefox without affecting the running Citrix application.

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

The wfica.desktop file is this

[Desktop Entry]
Name=Citrix ICA client
Comment="Launch Citrix applications from .ica files"
Categories=Network;
Exec=/opt/Citrix/ICAClient/wfica
Terminal=false
Type=Application
NoDisplay=true
MimeType=application/x-ica;

I also looked at

$ cat /usr/share/applications/mimeinfo.cache | grep firefox                                                         (08-15 18:47)
application/json=firefox.desktop;
application/pdf=chromium.desktop;firefox.desktop;libreoffice-draw.desktop;org.inkscape.Inkscape.desktop;vivaldi-stable.desktop;
application/x-xpinstall=firefox.desktop;
application/xhtml+xml=chromium.desktop;firefox.desktop;vivaldi-stable.desktop;
text/html=chromium.desktop;firefox.desktop;vivaldi-stable.desktop;
text/xml=chromium.desktop;firefox.desktop;vivaldi-stable.desktop;
x-scheme-handler/http=chromium.desktop;firefox.desktop;vivaldi-stable.desktop;
x-scheme-handler/https=chromium.desktop;firefox.desktop;vivaldi-stable.desktop;

which should be overridden anyway by

$ cat .config/mimeapps.list                                                                                       (08-15 18:51)
[Added Associations]
image/png=org.inkscape.Inkscape.desktop;

[Default Applications]
text/html=vivaldi-stable.desktop
text/xml=vivaldi-stable.desktop
x-scheme-handler/http=vivaldi-stable.desktop
x-scheme-handler/https=vivaldi-stable.desktop
x-scheme-handler/about=vivaldi-stable.desktop
x-scheme-handler/unknown=vivaldi-stable.desktop
application/x-ica=wfica.desktop
application/vnd.citrix.receiver.configure=new_store.desktop
application/xhtml+xml=vivaldi-stable.desktop
application/json=vivaldi.desktop
application/x-www-browser=vivaldi.desktop

I noticed when I tried to open the file from terminal using "xdg-open /path/to/file.ica" the first lines of the output were

/sbin/xdg-open: line 881: x-www-browser: command not found
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.jsm
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs

But it did open the application after opening Firefox.
I stumbled onto this issue where the last comment suggested

Define a "BROWSER" environment variable with a list of browsers, and open commands you would like it to try.

I added

export BROWSER="/opt/Citrix/ICAClient/wfica:vivaldi-stable:chromium-browser:google-chrome:firefox:iceweasel"

to my .zshenv file. Opening from a fresh terminal with "xdg-open /path/to/file.ica" OR with "/opt/Citrix/ICAClient/wfica /path/to/file.ica" now launches the Citrix app directly without opening Firefox at all. That is great! BUT ... in Vivaldi's download dialog if I choose Open it still opens a blank Firefox tab in the background. How do I stop this?

Last edited by branthebuilder (2022-08-17 15:52:34)

Offline

#2 2022-08-17 15:52:01

branthebuilder
Member
Registered: 2016-10-01
Posts: 67

Re: [SOLVED] Opening Citrix .ica launches firefox with empty tab

I guess reloading the shell env was not enough. I had to restart the user session to have the changes take effect. I still don't know why it calls x-www-browser at all though. ::shrug::

Offline

Board footer

Powered by FluxBB