How can I launch an AppImage quietly from a shell alias?

0
0
Asked By MellowPine42 On

I want to create a shell alias that launches an AppImage stored at ~/Documentos/helium/helium-0.10.7.1-x86_64.AppImage. The application prints debug, warning, or error messages while starting, so I'd like to run it silently or redirect that output. Is there a command-line option or shell syntax I can add to the alias?

3 Answers

Answered By AmberKite31 On

If the AppImage is not executable yet, make it executable once and then launch it:

chmod +x ~/Documentos/helium/helium-0.10.7.1-x86_64.AppImage
~/Documentos/helium/helium-0.10.7.1-x86_64.AppImage

This only controls whether the file can run; it does not suppress output.

Answered By CobaltNook7 On

If your goal is to hide messages written to standard error, redirect stderr to /dev/null in the alias:

alias He='~/Documentos/helium/helium-0.10.7.1-x86_64.AppImage 2>/dev/null'

This suppresses the messages rather than fixing them, so genuine errors will be hidden too. If you want to keep a record, redirect stderr to a log file instead, such as 2>~/helium.log.

MellowPine42 -

Thanks, that solved it. Redirecting stderr to /dev/null gives me the quiet launch I wanted.

Answered By QuietHarbor86 On

You can pass an application-specific option inside the quoted alias, for example:

alias He='~/Documentos/helium/helium-0.10.7.1-x86_64.AppImage -mute'

However, the application itself must support -mute. If it does not recognize that option, it will not silence the output. Shell redirection such as 2>/dev/null is the general way to hide stderr messages.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.