#1131870 No way of switching to the command mode for DEVICE=x11

Package:
ghostscript
Source:
ghostscript
Description:
interpreter for the PostScript language and for PDF
Submitter:
Roman Savochenko
Date:
2026-04-21 07:15:01 UTC
Severity:
normal
Tags:
#1131870#5
Date:
2026-03-25 16:56:55 UTC
From:
To:
The bug initialy reported in #1118353 as "Broken the main output device x11",
but no X11 output was through complete removing the "-sInputFile" argument.

After passing the input file directly there was detected other problem with
switching to the command mode, which was resolved the "-sInputFile" argument.

Switching to the command mode on Ghostscript 10.0.0:
$ ghostscript -sInputFile=DS2405.pdf
GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
GS>

Impossibility to switch the command mode without the "-sInputFile" argument:
$ ghostscript DS2405.pdf -
GPL Ghostscript 10.05.1 (2025-04-29)
Copyright (C) 2025 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 15.
Page 1
Loading font TimesNewRoman (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusRoman-Regular
Loading font Arial,Bold (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusSans-Bold
Loading font Arial (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusSans-Regular

#1131870#10
Date:
2026-04-18 23:12:02 UTC
From:
To:
x11",
argument.

I'm afraid I don't quite understand what you are reporting.  It would help if
you could follow-up with the following information:

What command did you run?
Please provide also all input files required.

What behaviour did you expect?

What behaviour did you observe?

Thanks,
-Steve

#1131870#13
Date:
2026-04-18 23:12:02 UTC
From:
To:
x11",
argument.

I'm afraid I don't quite understand what you are reporting.  It would help if
you could follow-up with the following information:

What command did you run?
Please provide also all input files required.

What behaviour did you expect?

What behaviour did you observe?

Thanks,
-Steve

#1131870#18
Date:
2026-04-19 05:20:10 UTC
From:
To:
19.04.26 02:12, Steven Robbins:

$ ghostscript -sInputFile=DS2405.pdf
GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
GS>

That is a correct behavior of version 10.0.0 in Debian 12 due to we can
entry commands to the document on the screen in "GS>".

When I enter the same command on version 10.05.1 I get no image on the
screen due to removing the argument "-sInputFile" there.

When I try to use directly passed file name with "-", I get image, but
stay in the interactive mode.

$ ghostscript DS2405.pdf -
GPL Ghostscript 10.05.1 (2025-04-29)
Copyright (C) 2025 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 15.
Page 1
Loading font TimesNewRoman (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusRoman-Regular
Loading font Arial,Bold (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusSans-Bold
Loading font Arial (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusSans-Regular
 >>showpage, press <return> to continue<<


So, there a question, how me must call ghostscript now to get image and
stay in the command mode?

Regards, Roman

#1131870#23
Date:
2026-04-19 05:20:10 UTC
From:
To:
19.04.26 02:12, Steven Robbins:

$ ghostscript -sInputFile=DS2405.pdf
GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
GS>

That is a correct behavior of version 10.0.0 in Debian 12 due to we can
entry commands to the document on the screen in "GS>".

When I enter the same command on version 10.05.1 I get no image on the
screen due to removing the argument "-sInputFile" there.

When I try to use directly passed file name with "-", I get image, but
stay in the interactive mode.

$ ghostscript DS2405.pdf -
GPL Ghostscript 10.05.1 (2025-04-29)
Copyright (C) 2025 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 15.
Page 1
Loading font TimesNewRoman (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusRoman-Regular
Loading font Arial,Bold (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusSans-Bold
Loading font Arial (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusSans-Regular
 >>showpage, press <return> to continue<<


So, there a question, how me must call ghostscript now to get image and
stay in the command mode?

Regards, Roman

#1131870#26
Date:
2026-04-19 05:20:10 UTC
From:
To:
19.04.26 02:12, Steven Robbins:

$ ghostscript -sInputFile=DS2405.pdf
GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
GS>

That is a correct behavior of version 10.0.0 in Debian 12 due to we can
entry commands to the document on the screen in "GS>".

When I enter the same command on version 10.05.1 I get no image on the
screen due to removing the argument "-sInputFile" there.

When I try to use directly passed file name with "-", I get image, but
stay in the interactive mode.

$ ghostscript DS2405.pdf -
GPL Ghostscript 10.05.1 (2025-04-29)
Copyright (C) 2025 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 15.
Page 1
Loading font TimesNewRoman (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusRoman-Regular
Loading font Arial,Bold (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusSans-Bold
Loading font Arial (or substitute) from
/usr/share/ghostscript/10.05.1/Resource/Font/NimbusSans-Regular
 >>showpage, press <return> to continue<<


So, there a question, how me must call ghostscript now to get image and
stay in the command mode?

Regards, Roman

#1131870#31
Date:
2026-04-20 02:11:18 UTC
From:
To:
I have tested 10.07.  Running simply "gs foo.pdf" and after pressing enter for
all the files, I did land on the GS> prompt.  Does that work for you?

#1131870#36
Date:
2026-04-20 08:28:34 UTC
From:
To:
20.04.26 05:11, Steven Robbins:

That is not about "work" due to after you list pages of the file to the
end it is became closed, then you cannot to send commands like to
"NEXT", "PAGE" to the file without its reopening.

And once you open the file even by a command, you will again switch to
the interactive mode.

That is, the command mode must be accessible for opened file and it used
by some old programs for navigation on the document!

#1131870#41
Date:
2026-04-20 22:49:33 UTC
From:
To:
On Monday, April 20, 2026 3:28:34 a.m. Central Daylight Time Roman Savochenko wrote:

OK.  This seems like deliberate behaviour change by upstream.  I don't see a
Debian bug here.  Can we close this now?

#1131870#46
Date:
2026-04-21 07:13:30 UTC
From:
To:
21.04.26 01:49, Steven Robbins:

Why I have set the tag "upstream" if you close all bugs related to upstream?

And the regression is caused by removing a feature without its
replacing, so it is not "deliberate behavior", due to it kill the soft
based on such feature.

So, what I must do with this broken soft after such voluntarism from the
upstream?