Browse Source

Made the clean_desktop.py script a little bit more bearable to work with

master
Yessiest 2 years ago
parent
commit
ab3570bf0b
  1. 21
      various_scripts/clean_desktop.py

21
various_scripts/clean_desktop.py

@ -10,7 +10,10 @@ DIRS = [
"/usr/share/applications"
]
print("Welcome to shitty link cleaner PRO v1.3.3.7 patch 666")
print("Welcome to shitty link cleaner PRO v1.3.3.7 patch 666 (PG edition; GOTY version; DLSS+Raytracing patch)")
incorrect_prompt = "What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You're fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that's just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little \"clever\" comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You're fucking dead, kiddo. \n\nSo, y/n?"
isroot = (os.environ["USER"] == "root")
engage = []
@ -19,12 +22,12 @@ for directory in DIRS:
p = Path(directory)
dfiles = list(p.glob('./*.desktop'))
if (not isroot) and p.owner() != os.environ["USER"]:
print("Unable to engage "+directory+" motherfucker - i'm not root and i refuse to delete anything in another user's dir.")
print("I am unable to can clean the "+directory+" directory, for I am rootn't ")
else:
print("Engage "+directory+" motherfucker ("+str(len(dfiles))+" files)")
print("Mr clean "+directory+" ("+str(len(dfiles))+" files)")
answer = input("[y/n?]: ")
while not (answer in ["y","n"]):
print("Bitch please speak clearly, y/n?")
print(incorrect_prompt)
answer = input("[y/n?]: ")
if answer == "y":
print("Added "+directory+" to cleaning list.")
@ -41,7 +44,7 @@ for f in engage:
print(str(f)+" doesn't seem to have an Exec field. delet?")
answer = input("[y/n?]: ")
while not (answer in ["y","n"]):
print("Bitch please speak clearly, y/n?")
print(incorrect_prompt)
answer = input("[y/n?]: ")
if answer == "y":
print(str(f)+" delet")
@ -53,10 +56,10 @@ for f in engage:
comm = None
for arg in args:
if arg == "env":
print("Assuming 'env' is not the target binary - skipping...")
print("Assuming 'env' is not the target binary")
continue
if "=" in arg:
print("Assuming '"+arg+"' is an environment variable - skipping...")
print("Assuming '"+arg+"' is an environment variable")
continue
comm = arg
break
@ -64,7 +67,7 @@ for f in engage:
print("Weirdly enough, "+str(f)+" has an exec, but no target. delet?")
answer = input("[y/n?]: ")
while not (answer in ["y","n"]):
print("Bitch please speak clearly, y/n?")
print(incorrect_prompt)
answer = input("[y/n?]: ")
if answer == "y":
print(str(f)+" delet")
@ -88,7 +91,7 @@ for f in engage:
print(comm+" doesn't seem to exist. delet?")
answer = input("[y/n?]: ")
while not (answer in ["y","n"]):
print("Bitch please speak clearly, y/n?")
print(incorrect_prompt)
answer = input("[y/n?]: ")
if answer == "y":
print(str(f)+" delet")

Loading…
Cancel
Save