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-session Inhibit() 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-session Inhibit() method. if you don't pass this option, "not specified" is used (so unbothered, so chill) ✨
  • --inhibit ACTION β€” ACTION specifies the actions to inhibit. this option can be repeated to inhibit multiple actions, go off πŸ”₯. the possible values for an ACTION are: logout, switch-user, suspend, idle, automount. if you don't pass this option at all, "idle" is assumed 🌈
  • --inhibit-only β€” do not launch COMMAND and 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-only literally means waiting forever β€” like, no COMMAND gets 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