Skip to content

Commit

Permalink
cinnamon-screensaver-main.py: use setproctitle to set the process
Browse files Browse the repository at this point in the history
name as "cinnamon-screensaver"
  • Loading branch information
mtwebster committed Dec 8, 2016
1 parent 5912b38 commit 3e86f53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Depends: cinnamon-desktop-data (>= 3.0.0),
python3-xlib | debian-system-adjustments,
python3-gi,
python3-gi-cairo,
python3-setproctitle,
gir1.2-cinnamondesktop-3.0,
gir1.2-gkbd-3.0,
gir1.2-glib-2.0,
Expand Down
3 changes: 3 additions & 0 deletions src/cinnamon-screensaver-main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import gettext
import argparse
import os
import setproctitle

import config
import status
Expand Down Expand Up @@ -105,6 +106,8 @@ def do_style_overrides(self):
Gtk.StyleContext.reset_widgets(Gdk.Screen.get_default())

if __name__ == "__main__":
setproctitle.setproctitle('cinnamon-screensaver')

main = Main()


Expand Down

0 comments on commit 3e86f53

Please sign in to comment.