这可能听起来像一个愚蠢的问题,我试图解决这个问题,但我无法弄清楚如何解决它.
我有两个图像命名imagem.bmp
和imagem2.bmp
一个shell脚本,应该使用gnome的眼睛打开这两个图像.我在脚本中写了这个:
#!/usr/bash
eog imagem.bmp
eog imagem2.bmp
Run Code Online (Sandbox Code Playgroud)
问题是只打开了一个图像,即,eog打开第一个图像,然后第二个图像被加载到同一个屏幕中.我只需要在两个单独的屏幕上打开它,以便我可以比较图像.
帮助文本总是有用的:
$ 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's version
--display=DISPLAY X display to use
Run Code Online (Sandbox Code Playgroud)
注意这个选项:
-n, --new-instance Start a new instance instead of reusing an existing one
Run Code Online (Sandbox Code Playgroud)
eog
运行eog -n
以打开新实例,而不是运行.