[gnome-shell] Telepathy: lookup PATH when launching empathy-accounts



commit 2679be9d974bbfc07b6828bfc9bb5584167bb87f
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Fri Jan 11 15:56:28 2013 +0100

    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

 js/ui/components/telepathyClient.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index 8ebcd2a..440655c 100644
--- a/js/ui/components/telepathyClient.js
+++ b/js/ui/components/telepathyClient.js
@@ -1346,9 +1346,8 @@ const AccountNotification = new Lang.Class({
         this.connect('action-invoked', Lang.bind(this, function(self, action) {
             switch (action) {
             case 'view':
-                let cmd = '/usr/bin/empathy-accounts'
-                        + ' --select-account=%s'
-                        .format(account.get_path_suffix());
+                let cmd = 'empathy-accounts --select-account=' +
+                          account.get_path_suffix();
                 let app_info = Gio.app_info_create_from_commandline(cmd, null, 0);
                 app_info.launch([], global.create_app_launch_context());
                 break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]