Eye of Gnome - open two images on different windows with shell script

This may seem like a silly question, I'm trying to figure it out, but I can't figure out how to solve it.

I have two images named imagem.bmpand imagem2.bmpand a shell script that should open these two images using eye of gnome. I wrote this in a script:

#!/usr/bash
eog imagem.bmp
eog imagem2.bmp

The problem is that only one image is open, i.e. eog opens the first image, and then the second image is loaded on the same screen. All I need to do is open it on two separate screens so that I can compare the images.

+5
source share
2 answers

Help text is always helpful:

$ eog --help
Usage:
  eog [OPTION...] [FILE…]

Help Options:
  -h, --help                         Show help options
  --help-all                         Show all help options
  --help-gtk                         Show GTK+ Options

Application Options:
  -f, --fullscreen                   Open in fullscreen mode
  -c, --disable-image-collection     Disable image collection
  -s, --slide-show                   Open in slideshow mode
  -n, --new-instance                 Start a new instance instead of reusing an existing one
  --version                          Show the application version
  --display=DISPLAY                  X display to use

Pay attention to this option:

-n, --new-instance       Start a new instance instead of reusing an existing one

eog eog -n, .

+6

bash , . & " ". :

#!/bin/bash
eog imagem.bmp &
eog imagem2.bmp &

/usr/bash.

, &, , eog.

+2

All Articles