xfce4-session has problems restoring gui-apps that pass cmdline args already seperated by commas
Submitted by Terry Chan
Assigned to Xfce Bug Triage
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:184.108.40.206) Gecko/20061224 Firefox/220.127.116.11 Build Identifier:
Using mrxvt (multi-session/windowed rxvt), xfce4-session cannot correctly restore this app between sessions because the invocation line for mrxvt already uses commas. So "mrxvt -ip 0,1,2,3" is the way I need to invoke mrxvt to restore my profiles for windows 0, 1, 2, and 3. However xfce4-session in .cache/session/xfce4-session-machinename:0 saves that commandline as: "Client0_RestartCOmmand=mrxvt,-ip,0,1,2,3,-desktop,0,-geometry,132x55+80+8,-km,NOENC,-sm,-sid,hexdigitshere
but that is incorrect as it really needs to be:
With xfce4-session passing 'mrxvt','-ip','0','1','2','3' the mrxvt app correctly responds with no such command 1, no such command 2, no such command 3.
I'm sure other gui-apps can or will also pass cmdline args where some parameters are seperated by commas and then whitespace. This behavior in xfce4-session needs some sort of modification to allow for those apps that have already decided to use commas in their own cmdline args.
Steps to Reproduce:
- invoke "mrxvt -ip 0,1,2,3" from Run program dialog box
- End session using Quit button on xfce4-panel
- Restart xfce4 and watch mrxvt not be restored, error messages get sent to linux console where startxfce4 was invoked from.
mrxvt says something to the effect of "no such command 1" and then "no such command 2" and then "no such command 3" and then no mrxvt app is started at all.
"mrxvt -ip 0,1,2,3" should open the mrxvt app with 4 windowed/sessions started up.