command line + D-Bus: fix for "pass absolute paths to dbus server" (MB #10461)
argv[0] is skipped by Cmdline::parse(), therefore wasn't added to the updated argument list for the D-Bus, which then basically ignored the first command line parameter.
This commit is contained in:
parent
867b286a8e
commit
67b1c0a599
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ bool Cmdline::parse()
|
|||
bool Cmdline::parse(vector<string> &parsed)
|
||||
{
|
||||
parsed.clear();
|
||||
if (m_argc) {
|
||||
parsed.push_back(m_argv[0]);
|
||||
}
|
||||
|
||||
int opt = 1;
|
||||
bool ok;
|
||||
while (opt < m_argc) {
|
||||
|
|
Loading…
Reference in a new issue