Skip to content

Commit

Permalink
Fix process title on Linux not being set. Fixes #2826
Browse files Browse the repository at this point in the history
pass bytes to prctl, fallout from the py3 port
  • Loading branch information
lazka committed May 8, 2018
1 parent 7d6ffdf commit 7e1c27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quodlibet/quodlibet/util/__init__.py
Expand Up @@ -1106,7 +1106,7 @@ def set_process_title(title):
try:
libc = load_library(["libc.so.6", "c"])[0]
# 15 = PR_SET_NAME, apparently
libc.prctl(15, title, 0, 0, 0)
libc.prctl(15, title.encode("utf-8"), 0, 0, 0)
except (OSError, AttributeError):
print_d("Couldn't find module libc.so.6 (ctypes). "
"Not setting process title.")
Expand Down

1 comment on commit 7e1c27e

@declension
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.