networkAgent: use absolute path if configured
Signed-off-by: Clemens Buchacher <drizzd@aon.at> https://bugzilla.gnome.org/show_bug.cgi?id=679212
This commit is contained in:
parent
a4b1ebd8c3
commit
8845a2170c
@ -683,7 +683,10 @@ const NetworkAgent = new Lang.Class({
|
|||||||
try {
|
try {
|
||||||
externalUIMode = keyfile.get_boolean('GNOME', 'supports-external-ui-mode');
|
externalUIMode = keyfile.get_boolean('GNOME', 'supports-external-ui-mode');
|
||||||
} catch(e) { } // ignore errors if key does not exist
|
} catch(e) { } // ignore errors if key does not exist
|
||||||
let path = GLib.build_filenamev([Config.LIBEXECDIR, binary]);
|
let path = binary;
|
||||||
|
if (!GLib.path_is_absolute(path)) {
|
||||||
|
path = GLib.build_filenamev([Config.LIBEXECDIR, path]);
|
||||||
|
}
|
||||||
|
|
||||||
if (GLib.file_test(path, GLib.FileTest.IS_EXECUTABLE))
|
if (GLib.file_test(path, GLib.FileTest.IS_EXECUTABLE))
|
||||||
this._vpnBinaries[service] = { fileName: path, externalUIMode: externalUIMode };
|
this._vpnBinaries[service] = { fileName: path, externalUIMode: externalUIMode };
|
||||||
|
Loading…
Reference in New Issue
Block a user