[sulfur] if exit status is > 255, pass it through the mod operator (this fixes Sulfur respawns with kdesu)
This commit is contained in:
@@ -74,5 +74,8 @@ while rc in (99, 98):
|
||||
rc = os.system(sulfur_path)
|
||||
else:
|
||||
rc = os.system(su_cmd)
|
||||
if rc > 255:
|
||||
# kdesu is idiotic
|
||||
rc = rc % 255
|
||||
|
||||
raise SystemExit(rc)
|
||||
|
||||
Reference in New Issue
Block a user