From d66af32804942fce60725c1003387696f6f063c6 Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Wed, 11 Dec 2019 04:04:56 -0900 Subject: [PATCH 1/3] Added setproctitle. --- libstormgames.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstormgames.py b/libstormgames.py index 3483f20..d888c39 100755 --- a/libstormgames.py +++ b/libstormgames.py @@ -9,6 +9,7 @@ from os import listdir from os.path import isfile, join from inspect import isfunction from xdg import BaseDirectory +from setproctitle import setproctitle import pygame import pyperclip import random @@ -76,6 +77,7 @@ def initialize_gui(gameTitle): # Set game's name global gameName gameName = gameTitle + setproctitle(gameTitle) # start pygame pygame.init() # start the display (required by the event loop) From ba09c4d5f3d1dd843f23396d5a5f4cedc9536f04 Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Wed, 11 Dec 2019 04:59:56 -0900 Subject: [PATCH 2/3] Updated ReadMe, now require setproctitle --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3250bde..9cb35d4 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,6 @@ Library to make writing audiogames easier. ## Requirements -configparser pyxdg pygame pyperclip requests +configparser pyxdg pygame pyperclip requests setproctitle ### For mac os X and windows accessible_output2 From fc62ccc05836605a1057e87e6ea34aa9db510a81 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 11 Dec 2019 09:37:58 -0500 Subject: [PATCH 3/3] Make process name nicer. --- libstormgames.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstormgames.py b/libstormgames.py index c130e9f..5472cfb 100755 --- a/libstormgames.py +++ b/libstormgames.py @@ -89,7 +89,7 @@ def initialize_gui(gameTitle): # Set game's name global gameName gameName = gameTitle - setproctitle(gameTitle) + setproctitle(str.lower(str.replace(gameTitle, " ", ""))) # start pygame pygame.init() # start the display (required by the event loop)