Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890539 - net-misc/icaclient: usb redirection not working
Summary: net-misc/icaclient: usb redirection not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Henning Schild
URL: https://www.citrix.com/downloads/work...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-11 20:30 UTC by Henning Schild
Modified: 2023-04-15 12:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Schild 2023-01-11 20:30:21 UTC
The application has a way to redirect hot-plugged USB devices to the remote desktop.

But none of that currently works.

Reproducible: Always

Steps to Reproduce:
1. install net-misc/icaclient
2. connect to a remote desktop
3. plug a USB device like a storage device
Actual Results:  
USB device will not show up on remote, but instead will show on host.

Expected Results:  
USB device should show up on remote, maybe not anymore on host.

There are multiple executables which we do not install with +x.

There is an init script for a daemon for which we do not have an init.d or systemd service.

There are udev rules which we do not install in /etc

There is a config file which we do not carry as "config file", so if it ever works and users want to configure it, the configuration will be lost on reinstall or update.

This likely never worked in gentoo, but would be nice to get working.
Comment 1 Henning Schild 2023-01-11 20:30:58 UTC
please assign to me, i am already on it
Comment 2 Henning Schild 2023-01-12 22:33:05 UTC
There is a debian package that is split-out, it does keep the x-bits and installs ICAROOT/usr/ into ICAROOT and does some changes to that module.ini to enable the plugin.

We should likely "USE=usb" and do the same, where we bring a daemon. But so far i could not make it work. Which might be because i still miss some bits, or because the citrix server i happen to have access to does not allow USB device redirection. I already could see a new icon in the window, but it did not list any devices when opened.
Comment 3 Henning Schild 2023-02-04 22:26:08 UTC
i do have code for that here https://github.com/henning-schild/gentoo/tree/henning/staging4

but this link will not work for a very long time since i might force push it and what you see might be totally unrelated

but i will only force push after proposing a solution, so the code will be visible in the gentoo tree ... given it can be merged


what i have does not work for me because my server likely does not allow usb devices, but comparing it to ubuntu and the deb packages ... i am pretty sure it could work for others and behaves like ubuntu for me

if anyone using icaclient does use "usb redirection", please do test that

i will likely propose it for a merge even without anyone testing

because it "likely works" because it is like "ubuntu" ... only i can not test but would be willing to maintain anyhow

Nothing could go wrong really ... since nobody ever complained ... i opened this bug as a maintainer, not a user
Comment 4 Henning Schild 2023-03-31 11:03:06 UTC
i managed to test this after all and will proceed suggesting patches
Comment 5 Larry the Git Cow gentoo-dev 2023-04-15 12:43:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e575292be341611ebac6bdbaba694f62fb6f7797

commit e575292be341611ebac6bdbaba694f62fb6f7797
Author:     Henning Schild <henning@hennsch.de>
AuthorDate: 2023-03-31 12:39:12 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-04-15 12:43:25 +0000

    net-misc/icaclient: enable usb redirect support
    
    We need to copy the content of the usb/ subfolder into ICAROOT and
    enable the USB support in module.ini. There are udev rules and a daemon
    but none of that seems needed.
    Users need to be in 'usb' group, mention that in postinst.
    
    Since we have an increasing number of changes to module.ini and the user
    might in fact also want to change stuff (like i.e. FIDO2), we move the
    file to /etc. Same goes for usb.conf in which users can customize which
    USB devices can be redirected.
    
    Closes: https://bugs.gentoo.org/890539
    Signed-off-by: Henning Schild <henning@hennsch.de>
    Closes: https://github.com/gentoo/gentoo/pull/30352
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-misc/icaclient/icaclient-23.3.0.32.ebuild | 33 +++++++++++++++++++++++----
 net-misc/icaclient/metadata.xml               |  1 +
 2 files changed, 30 insertions(+), 4 deletions(-)