How can i open an .png file with an .sh file?

Im using an .desktop file to launch an .sh file that launchs multiple programs.So i want to open a .png file with the .sh file, but i use some terminal commands and it dont show it. Here is an example of the .sh file im using:

!/bin/sh
start four terminal sessions in the background
gnome-terminal
gnome-terminal
gnome-terminal
/directory/pngfile.png

I also used:

mirage pngfile.png

Sorry for my bad english, im from South America

So, how can i open an .png file with an .sh file?

6

1 Answer

The answer for my question is to use:

cd /directory/
eog pngfile.png

eog is a real image viewer. One hour looking the answer myself.

This also works:

xdg-open pngfile.png

muru gave me this command.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like