gpt4 book ai didi

c++ - Eye of Gnome - 使用 shell 脚本在不同窗口打开两个图像

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:16:27 25 4
gpt4 key购买 nike

这听起来像是一个愚蠢的问题,因为我尝试了一段时间来解决这个问题,但我不知道如何解决它。

我有两个名为 imagem.bmpimagem2.bmp 的图像以及一个应该使用 gnome 之眼打开这两个图像的 shell 脚本。我在脚本中写了这个:

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

问题是只打开了一张图片,即 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

注意这个选项:

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

运行 eog -n 以打开一个新实例,而不是运行 eog

关于c++ - Eye of Gnome - 使用 shell 脚本在不同窗口打开两个图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10957281/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com