Bug 394000 - When starting Kaffeine with more than 2 parameters, only the last parameter is used.
Summary: When starting Kaffeine with more than 2 parameters, only the last parameter i...
Status: RESOLVED FIXED
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 2.0.15
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
: 394027 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-05-08 13:08 UTC by romeoK
Modified: 2018-05-09 20:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description romeoK 2018-05-08 13:08:32 UTC
When i start Kaffeine with these parameters

kaffeine %U -m -t

it works as expected, Kaffeine starts in in minimal mode (-m) and always on top (-t)

But i need to start Kaffeine like this:

kaffeine %U -m -t --channel 5

so i can avoid the intro-screen(select if tv/dvd/file etc.)

But now, the first 2 parameters are ignored, so only channel 5 is tuned.

It seems that whenever i use - and -- parameters in conjunction, then only the -- ones are used?

I tried to change the order of the parameters, but still only the --channel 5 parameter is used then.
Comment 1 Mauro Carvalho Chehab 2018-05-08 15:00:57 UTC
Git commit d1bddebb75795dc86fb36a56b0cd8c028feb88c0 by Mauro Carvalho Chehab.
Committed on 08/05/2018 at 14:58.
Pushed by mauroc into branch 'master'.

mainwindow: reorder arguments to better handle mutually exclusive ones

Some arguments are mutually exclusive and should be parsed
after the others, as the arguments parser routine returns
just after parsing them.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

M  +75   -66   src/mainwindow.cpp

https://commits.kde.org/kaffeine/d1bddebb75795dc86fb36a56b0cd8c028feb88c0
Comment 2 Jesus 2018-05-09 20:06:01 UTC
*** Bug 394027 has been marked as a duplicate of this bug. ***