GNOME-SESSION-INHI(1)
β¨ GNOME-SESSION-INHI(1) β¨
okay bestie, pull up a chair, because today we're talking about gnome-session-inhibit β it's a user command from the GNOME-SESSION family and honestly? it's giving very useful π
πΈ NAME πΈ
gnome-session-inhibit β inhibit gnome-session functionality no cap, that's literally the whole point π
π¦ SYNOPSIS π¦
gnome-session-inhibit [OPTION...] [COMMAND]
β DESCRIPTION β
so here's the tea β β gnome-session-inhibit can inhibit certain gnome-session functionality while it's busy executing the COMMAND you hand it. the way it does this is lowkey iconic: it calls the Inhibit() method of the gnome-session D-Bus API and creates an inhibitor. and the best part? that inhibitor gets automatically removed the moment gnome-session-inhibit exits. no cleanup, no drama, she handles herself π«Ά
a typical use case β and bestie this is the one you'll actually use β is stopping the session from going idle (which, iykyk, means locking the screen π) while a movie player is running. movie night stays uninterrupted. main character energy fr fr π¬β¨
π OPTIONS π
-h,--helpβ print help and dip out. that's it, that's the whole job π--versionβ print version information and exit. flex the numbers, queen π--app-id IDβ the application id to use when calling the gnome-sessionInhibit()method. if you don't pass this option,"unknown"is used. mysterious. anonymous. iconic π--reason REASONβ a human-readable reason to pass along when calling the gnome-sessionInhibit()method. if you don't pass this option,"not specified"is used (so unbothered, so chill) β¨--inhibit ACTIONβACTIONspecifies the actions to inhibit. this option can be repeated to inhibit multiple actions, go off π₯. the possible values for anACTIONare:logout,switch-user,suspend,idle,automount. if you don't pass this option at all,"idle"is assumed π--inhibit-onlyβ do not launchCOMMANDand instead wait forever. forever. FOREVER. she's committed, she's patient, she's eternal ππ-l,--listβ list the existing inhibitions and exit. a little peek at what's currently being held back π
not me reminding you that--inhibit-onlyliterally means waiting forever β like, noCOMMANDgets launched and the process just sits there. use it on purpose, bestie, not by accident π
π SEE ALSO π
systemd-inhibit(1) β the cousin, the other one, the one you also want in your contacts π
and that's the whole page!! this one came to you from the gnome-session fam, page GNOME-SESSION-INHI(1), and yeah β time to log off, hydrate, and maybe inhibit your own idle timer ππ§β¨
π¦ where this page comes from
- arch rolling: gnome-session 51.0-1 Β· GPL-2.0-or-later
- ubuntu stonking: gnome-session-bin 51.0-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms