Hide program path in short process view

Fix bug introduced in commit e350cb5.
This commit is contained in:
Alessio Sergi 2016-01-27 11:17:27 +01:00
parent a304798c16
commit dae8db065c

View File

@ -295,15 +295,10 @@ class Plugin(GlancesPlugin):
if cmdline == '':
msg = ' {0}'.format(p['name'])
ret.append(self.curse_add_line(msg, splittable=True))
elif args.process_short_name:
msg = ' {0}'.format(p['name'])
ret.append(self.curse_add_line(msg, decoration='PROCESS', splittable=True))
msg = ' {0}'.format(argument)
ret.append(self.curse_add_line(msg, splittable=True))
else:
cmd = cmdline.split()[0]
path, basename = os.path.split(cmd)
if os.path.isdir(path):
if os.path.isdir(path) and not args.process_short_name:
msg = ' {0}'.format(path) + os.sep
ret.append(self.curse_add_line(msg, splittable=True))
ret.append(self.curse_add_line(basename, decoration='PROCESS', splittable=True))