Sunday 16 June 2013

Citrix Receiver Segfaulting under Kubuntu Raring

The other weekend I updated Kubuntu through 2 releases to the latest raring.
The upgrade was a painless process - a simple do-release-upgrade or something so I thought all was merry.

Not so fast. One of the few application I use is Citrix XenApp receiver to work from home. For some reason when I clicked the icon from the web interface I was getting zero response. Zero, nada, zilch.

(I did manage to work out how to get the raw ICA file through from the citrix xenapp web interface: in firefox simply disable the Citrix receiver plugin and it pops up with the file itself which you can run through wfica manually! :) ).

I ran the program through a lot of stuff - strace, checked the ldd, valgrind, changed my window manager, and nothing fixed it! I couldn't even see the problem since the code is proprietary. Though it did seem to be happening somewhere gtk_main.

Still segfaulting.

Then I went on a bit of a rampage and deleted everything listed under `gtkorphan` which was fun but not helpful.

Then I force removed gtk3 down to 2 using: http://askubuntu.com/questions/18631/how-to-downgrade-gtk2-0-package-to-workaround-bug-693758

Then I removed the oxygen them: http://askubuntu.com/questions/177909/restore-gtk-integration-after-removing-kde

And bingo!
Not sure exactly what it was. My tests seem to indicate the oxygen theme but that wouldn't explain why it still wasn't working under xfce. So maybe it was that in combination with the gtk downgrade.

Anyway, please let me know if you face a similar problem and write a comment - I can probably help you out. This was such a difficult one to fix (without reinstalling!).

Peace out.

Restoring Linux Ubuntu Citrix Receiver Keyboard Shortcuts

Recently I did a complete upgrade of my Kubuntu OS which managed to break one of my few useful utilities - Citrix Xenapp receiver.

First it segfault'ed all the time (more to come) but secondly it also got rid of all my keyboard shortcuts!

I couldn't quit Xenapp when it was full screen without forcibly killing the application (killall `pidof wfica`). The Ctrl-F2 shortcut had been wiped.

So the fix was as follows.

Check to make sure both your ~/.ICAClient/appsrv.ini and ~/.ICAClient/wfclient.ini both have the following shortcut mappings right after the [WFCLIENT] tag:


 Hotkey1Char=F1  
 Hotkey1Shift=Shift  
 Hotkey2Char=F3  
 Hotkey2Shift=Shift  
 Hotkey3Char=F2  
 Hotkey3Shift=Shift  
 Hotkey4Char=F1  
 Hotkey4Shift=Ctrl  
 Hotkey5Char=F2  
 Hotkey5Shift=Ctrl  
 Hotkey6Char=F2  
 Hotkey6Shift=Alt  
 Hotkey7Char=plus  
 Hotkey7Shift=Alt  
 Hotkey8Char=minus  
 Hotkey8Shift=Alt  
 Hotkey9Char=F3  
 HotKey9Shift=Ctrl  
 Hotkey10Char=F5  
 HotKey10Shift=Ctrl  
 Hotkey11Char=plus  
 Hotkey11Shift=Ctrl  
 Hotkey12Char=plus  
 Hotkey12Shift=Ctrl  
 Hotkey13Char=plus  
 Hotkey13Shift=Ctrl  
Now I can Ctrl-F2 and Alt-Tab to my next local application REF: http://support.citrix.com/article/CTX140219

Can we just autofill city and state? Please!

Coming from a country that is not the US where zip/postal codes are hyper specific, it always drives me nuts when you are filling in a form ...