-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c030686
commit 9e7d08d
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,15 +20,26 @@ imports.searchPath.push(getPath()); | |
|
||
|
||
// Open the extension preferences window | ||
function startPreferences() { | ||
function startPreferences () { | ||
try { | ||
GLib.spawn_command_line_async( | ||
"gnome-shell-extension-prefs [email protected]" | ||
); | ||
} catch (e) { | ||
log("Error spawning GSConnect settings: " + e); | ||
} | ||
} | ||
}; | ||
|
||
|
||
function stopService () { | ||
try { | ||
GLib.spawn_command_line_async( | ||
"bash -c \"kill $(ps aux | grep '[email protected]/service/[d]aemon.js' | awk '{print $2}')\"" | ||
); | ||
} catch (e) { | ||
log("Error stopping GSConnect service: " + e); | ||
} | ||
}; | ||
|
||
|
||
/** | ||
|