1

This question already has an answer here:

I would like to know how to convert the following simple alias to a desktop launcher:

cat ~/info1.txt

marked as duplicate by vanadium, karel, Eric Carvalho, pomsky, pLumo Dec 14 '18 at 13:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

Create a .desktop file, say read-info1.desktop and add the following lines:

[Desktop Entry]
Name=Read info1
Comment=Read the info1.txt file in Terminal
Exec=gnome-terminal -x sh -c 'cat /home/YOUR-USERNAME/info1.txt; exec bash'
Terminal=false
Type=Application
Icon=text-x-generic

Of course put your actual username in place of YOUR-USERNAME in the Exec= line.

Not the answer you're looking for? Browse other questions tagged or ask your own question.