Telepathy: lookup PATH when launching empathy-accounts

It might be installed only in the jhbuild path.

https://bugzilla.gnome.org/show_bug.cgi?id=691553
This commit is contained in:
Giovanni Campagna 2013-01-11 15:56:28 +01:00
parent 4d59368c7d
commit 2679be9d97

View File

@ -1346,9 +1346,8 @@ const AccountNotification = new Lang.Class({
this.connect('action-invoked', Lang.bind(this, function(self, action) { this.connect('action-invoked', Lang.bind(this, function(self, action) {
switch (action) { switch (action) {
case 'view': case 'view':
let cmd = '/usr/bin/empathy-accounts' let cmd = 'empathy-accounts --select-account=' +
+ ' --select-account=%s' account.get_path_suffix();
.format(account.get_path_suffix());
let app_info = Gio.app_info_create_from_commandline(cmd, null, 0); let app_info = Gio.app_info_create_from_commandline(cmd, null, 0);
app_info.launch([], global.create_app_launch_context()); app_info.launch([], global.create_app_launch_context());
break; break;