Skip to content

Commit

Permalink
Don't use the full command line as an identifier
Browse files Browse the repository at this point in the history
Variation on 26570a7 as explained.  Unknown effects on behavior.
  • Loading branch information
benburrill committed Jan 8, 2018
1 parent 26570a7 commit d533b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockbarx/dockbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ def __add_window(self, window):
f = open("/proc/"+str(pid)+"/cmdline", "r")
except:
raise
cmd = f.readline()
cmd = f.readline().split("\0")[0]
if "/" in cmd:
fallback = cmd.split("/")[-1]
else:
Expand Down

0 comments on commit d533b05

Please sign in to comment.