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:
Patrick Ohly 2010-04-07 18:21:54 +02:00
parent 867b286a8e
commit 67b1c0a599

View file

@ -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) {