Bug 326306

Summary: Can't connect local printer, bad parameters
Product: [Applications] krdc Reporter: mazesloup
Component: RDPAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED NOT A BUG    
Severity: normal CC: eth, mazesloup
Priority: NOR    
Version: 4.11.2   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mazesloup 2013-10-20 06:35:43 UTC
With version 4:4.11.2-0ubuntu1 of KRdc on KUbuntu 13.10, the additionnal arguments aren't correctly passed.

Command line from Krdc :

xfreerdp -g 1280x1024 -k 0x0000040C -d afitse -u xxx -p ******** -D -X 79692398 -a 16 --plugin rdpdr --data disk media /media -- -x l --plugin rdpdr --data printer -- --ignore-certificate --plugin cliprdr -t xxx xxx

The right command should be :

xfreerdp -g 1280x1024 -k 0x0000040C -d afitse -u xxx -p ******** -D -X 79692398 -a 16 --plugin rdpdr --data disk media /media --data printer -- -x l --ignore-certificate --plugin cliprdr -t xxx xxx

I can't find the good way to pass the argument with Krdc since it's always added after -x I

Thread on Kde forum : http://forum.kde.org/viewtopic.php?f=18&t=117991

Thank's for investigate !

Reproducible: Always

Steps to Reproduce:
1. Passed parameters in connection setting
2. Connect

Actual Results:  
No local printer detected

Expected Results:  
Local printer available
Comment 1 Urs Wolfer 2013-10-20 10:37:32 UTC
It sounds strange to me that the order of this params matter... I can move the block which adds additional params some lines up, but I have no idea if it breaks other params which could be added by some users. Or do you think that would work for everything?
Comment 2 mazesloup 2013-10-21 10:38:28 UTC
(In reply to comment #1)
> It sounds strange to me that the order of this params matter... I can move
> the block which adds additional params some lines up, but I have no idea if
> it breaks other params which could be added by some users. Or do you think
> that would work for everything?

Hi, it's not really the order, it's more that it seems when we use twice "--plugin rdpdr" only the first is used by xfreerdp.
So if a take the KRdc command line and add "--data printer" just after "--plugin rdpdr --data disk media /media" and before "--" it's working.
Comment 3 Urs Wolfer 2013-10-27 16:59:16 UTC
The parameter "--plugin rdpdr" is added only once by KRDC - you have added the second one. Does "--data printer" only work if it is added right after the --plugin rdpdr"? In that case, it would be really hard to fix in KRDC, since any other parameter could be added at another position...

Or do you know if I could move any "additional user entered parameter" before "-- -x l"? I could change that.
Comment 4 Eitzenberger Thomas 2014-01-14 19:01:46 UTC
I am also affected. It works if you make the media folder empty but then I cant access the local disks :(
Comment 5 Urs Wolfer 2014-01-15 20:09:09 UTC
@Thomas: Can you please check the command which KRDC executes? Is "--plugin rdpdr" also added twice in your case?
Comment 6 Eitzenberger Thomas 2014-01-17 07:16:10 UTC
Sorry for the spoiler but I seem to be unable to get the debug output created.... Been with kdebugdialog but no change in output and nothing in xsession....
Comment 7 Urs Wolfer 2014-01-17 07:22:09 UTC
@Thomas: You need to activate KRDC in kdebugtool. Then you need to run KRDC from a terminal.
Comment 8 Urs Wolfer 2014-03-30 11:13:18 UTC
@Eitzenberger Thomas:  Please see my comment above. Your feedback would probably help fixing this issue.
Comment 9 Eitzenberger Thomas 2014-03-30 12:08:08 UTC
Sorry forgot this issue as Remmina worked out of the box... Will try to supply you data upcoming week
Comment 10 Christoph Feck 2014-04-20 18:50:24 UTC
Thomas, any update?
Comment 11 Christoph Feck 2014-05-08 22:19:52 UTC
To further investigate this issue, KDE developers need the information requested in comment #5. If you can provide it, or need help with finding that information, please add a comment.
Comment 12 Christoph Feck 2014-06-10 21:34:59 UTC
No response, changing status. If you have more information, please add a comment.