Hi, here’s a quick post with the instruction I used to fix this. My employer give access to different ressources via Citrix. One of them was starting full screen and using my 3 monitor. The other one was starting in a windows 1024×768 ..
I assume you already have installed citrix reciever ( located in /opt/Citrix/ICAClient/ ) and everything is already working.. So here’s how I fixed the multiple monitor thing.
Create a new script:
$ sudo vim /opt/Citrix/ICAClient/xdg-open-wfica.sh
Put this content in it:
#!/bin/sh FILEA=$1 ; sed -i 's/DesiredVRES.*/DesiredVRES=4294967295/' $FILEA ; sed -i 's/DesiredHRES.*/DesiredHRES=4294967295/' $FILEA ; export WFICA_OPTS="-span a" ; /opt/Citrix/ICAClient/wfica -span h -icaroot /opt/Citrix/ICAClient $FILEA
Change the permissions
$ sudo chmod +x /opt/Citrix/ICAClient/xdg-open-wfica.sh
Allright, now you can try if this work!
$ /opt/Citrix/ICAClient/xdg-open-wfica.sh /path/to/your/launch.ica
The session should start on all your monitor. There’s nothing really complex here, we are just replacing the DesiredVRES and DesiredHRES the Citrix server preset in the .ica file…
Now if you want to launch all the ica file using this script you can just modify the .desktop entry and point the Exec= to the script we just created and add %f at the end which is the variable referencing the filename.
$ cat /usr/share/applications/wfica.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Citrix Receiver Engine StartupWMClass=Wfica NoDisplay=true MimeType=application/x-ica; Categories=Application;Network;X-Red-Hat-Base;X-SuSE-Core-Internet; Icon=/opt/Citrix/ICAClient/icons/manager.png TryExec=/opt/Citrix/ICAClient/wfica Exec=/opt/Citrix/ICAClient/xdg-open-wfica.sh %f
I’m not sure if this is necessary, but if it doesn,t work yet, try it:
sudo update-desktop-database && sudo update-mime-database /usr/share/mime
So after that you should be able to doublecheck an .ica file in your nautilus or maybe open it right in firefox. I wanted to use xdg-open in forefox to open the file directly but I’m using the snap version of firefox and there seems to have a problem opening files..
This is far from perfect, I don’t have a lot of time and I wanted to work quick so it might be a bit dirty, but it’s a good start.
Hope this will help!