mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
Hide program path in short process view
Fix bug introduced in commit e350cb5
.
This commit is contained in:
parent
a304798c16
commit
dae8db065c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user