gtk4-launch(1)
π gtk4-launch(1) β the "GTK commands" girlies know π
okay bestie, so this is a page from the GTK commands manual (section 1, obviously), and it's literally the lil tool that makes apps go poof into existence β¨
πΈ NAME πΈ
gtk4-launch β launch an application π
π SYNOPSIS π
gtk4-launch [OPTIONS...] <APPLICATION> [URI...]
π¦ DESCRIPTION π¦
So gtk4-launch launches an application based on the name you give it. It starts that app up with proper startup notification, on a default display, unless you've specified otherwise. Periodt. π
It needs at least one argument, and that argument is the name of the application you wanna launch. And like β that name should match the application's desktop file name, the one chillin' in the applications subdirectories of the XDG data directories. You can give it with or without the .desktop suffix, both are fine, no biggie π«Ά
Now if you pass more than one argument? The rest of them, besides the application name, get treated as URI locations, and they're passed as arguments straight to the launched application. It's giving "here's your app, and also here's some places to go" π
β¨ OPTIONS β¨
-?,-h,--helpβ prints the command's help and dips out. iconic behaviour honestly π--versionβ prints the command's version and exits. short, sweet, slay π
π ENVIRONMENT π
a few environment variables affect how gtk4-launch behaves, bestie β pay attention π
XDG_DATA_HOME,XDG_DATA_DIRSβ these are the environment variables that specify the XDG data directories. yes, the same ones we were just talking about for finding those desktop files. iykyk π
ngl, the whole "at least one argument" thing is not optional β give it an app name or it's not gonna have a good time π
okay that's the whole page, you ate that π β¨
this came to you from GTK (that's the source, mwah π) and it's page gtk4-launch(1) in the GTK manual β go launch something cute, bestie π¦π
π¦ where this page comes from
- ubuntu stonking: libgtk-4-bin 4.24.1+ds-1 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND sun-permissive AND lcs-telegraphics-permissive AND X11R5-permissive AND MIT AND BSD-3-clause-Google AND Apache-2.0 AND CC0-1.0 AND ZPL-2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms