SOLVED=> "Launch in terminal" query

Hi Folks.
Usually making a launcher for an app is very simple for me, but this has me stumped...

In trying to create a desktop launcher for Neofetch, it opens just fine - but closes after about a second (more like just a blink !!).

I'd like for it to stay visible until I manually close it.

Tried adding sleep to the command line, but that didn't help.

If anyone knows how to make this work better, please educate me ??

Thanks.

Hi, @computerguy :slight_smile:

I've just done some experimenting in my computer running Ubuntu MATE 22.04 LTS ("Jammy Jellyfish") and I believe I've reached a solution for your question with the following "Neofetch.desktop" file, for a Neofetch launcher that opens a "MATE Terminal" window, runs Neofetch and then waits for you to press Ctrl+C or to close the window (as you would expect, the "magic" happens in the "Exec" line):

[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Name[en_US]=Neofetch
Exec=/usr/bin/mate-terminal --command "bash -c '/usr/bin/neofetch ; read'"
Icon=ne
Icon[en_US]=ne
Name=Neofetch

I hope this helps :slight_smile:

5 Likes

Sincerest Thank Ricmarques - that is pure gold & works perfectly.

What amazes me is that I've searched for a working solution for that over time & never found any info resmbling what you've so kindly provided.

Thanks Again !!

2 Likes