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:
Mikkel Kamstrup Erlandsen
2008-11-04 22:40:52 +00:00
parent e86920147b
commit 0f966eabbf
2 changed files with 32 additions and 4 deletions

View File

@ -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