Autodetect where the 'pidof' command lives and enable optional verbose logging inside start-replace
scripts/start-replace: Detect if 'pidof' lives in /sbin, /bin, or /usr/bin. Add conditional verbose logging if -v is passed on the command line scripts/launcher.py: Add method is_verbose() to Launcher class svn path=/trunk/; revision=31
This commit is contained in:
@ -78,7 +78,10 @@ class Launcher:
|
||||
plugin = os.path.join(self.plugin_dir, "libgnome-shell.la")
|
||||
args.extend(['metacity', '--mutter-plugins=' + plugin, '--replace'])
|
||||
return subprocess.Popen(args, env=env)
|
||||
|
||||
|
||||
def is_verbose (self):
|
||||
"""Returns whether the Launcher was started in verbose mode"""
|
||||
return self.options.verbose
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user