Command line for locking the computer on Linux

Godot Version

4.6.2

Question

I am working on a game-esque project akin to desktop goose, upon failing a certain challenges, godot is supposed to lock your PC, which i did before on windows with OS.execute(“CMD.exe”,[“/C”,“rundll32.exe user32.dll,LockWorkStation”]), my question is; what is the Linux version of this? I’ve tried searching across godot and linux terminal posts but still couldn’t find the answer :/.

IMHO that is harmful behavior, would call it a virus or malware. Don’t harm other peoples system.

2 Likes

the behaviour is explicitly stated on the store page, before and during the project running, and the program closes itself immediately after doing so. additionally it is a toggle able setting set to off by default

Not a funny concept. Sounds like an idea of a script kiddie.

2 Likes

okay :frowning:

Maybe if you had it take you to a fake lock screen and have players guess the password through those hints left behind when you select forgot password on Windows?

2 Likes

Please dont do this.

3 Likes

Just be aware that as soon as someone downloads your game and reports it as Malware, your account on Itch, Steam, etc. is going to get permanently shut down. It doesn’t matter what you intended - this is a harmful practice, and saying “I warned the user!” is not going to help you. Also, you’re going to be making that argument to companies that have already banned your account.

3 Likes

as i have now realised, this is stupidly unnecessary and will likely get me banned if i were to implement it, as such i’ll archive this if anyone else tries to search something like this too

thank you to everyone who responded for making me realise this is a horrible idea

3 Likes