Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] viewer for "ps" postscript files

66 views
Skip to first unread message

the...@sys-concept.com

unread,
Dec 23, 2021, 4:00:04 PM12/23/21
to
I have latest ghostscript installed: ghostscript-gpl-9.55.0-r1

When I try to view a postsript file from command line: gs W-9_Form.ps
It works OK, but when I try to open same file in Xfce desktop it opens and closes instantly.

I use hylafax + YajHFC
and when I try to open some files I get an error:

yajhfc.file.FileConverter$ConversionException: Non-zero exit code of GhostScript (1):
Error: /undefined in .setpdfwrite
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:776/1123(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)--
Current allocation mode is local
GPL Ghostscript 9.55.0: Unrecoverable error, exit code 1

at yajhfc.file.GhostScriptMultiFileConverter.convertMultiplePSorPDFFiles(GhostScriptMultiFileConverter.java:101)
at yajhfc.file.MultiFileConverter.convertMultipleFiles(MultiFileConverter.java:144)
at yajhfc.file.MultiFileConverter.convertMultipleFilesToSingleFile(MultiFileConverter.java:206)
at yajhfc.file.MultiFileConverter.viewMultipleFiles(MultiFileConverter.java:181)
at yajhfc.MainWin$ShowWorker.doWork(MainWin.java:498)
at yajhfc.util.ProgressWorker.run(ProgressWorker.java:189)


YajHFC 0.6.1
Java 1.8.0_312 (Temurin)
OpenJDK Runtime Environment 1.8.0_312-b07
OpenJDK 64-Bit Server VM
Linux 5.10.61-gentoo (amd64)

--
Thelma

Spackman, Chris

unread,
Dec 23, 2021, 6:00:06 PM12/23/21
to
On 2021/12/23 at 01:57pm, the...@sys-concept.com wrote:
> I have latest ghostscript installed: ghostscript-gpl-9.55.0-r1
>
> When I try to view a postsript file from command line: gs W-9_Form.ps
> It works OK, but when I try to open same file in Xfce desktop it opens
> and closes instantly.

My guess would be that in XFCE, gs is successfully doing whatever
(showing, interpreting, ??) in a terminal window and then immediately
closing when done.

Have you tried a GUI such as Okular or Evince? They both support viewing
.ps files.

In Thunar, just right click on the file and choose "Open with >" and
either Okular or Evince if they are listed, or "Open with Other
Application ..." if they aren't. (But if they aren't listed, you might
have to install them, or a similar GUI viewer.)

> I use hylafax + YajHFC and when I try to open some files I get an error:

I honestly have no idea about hylafax and YajHFC. Unless there is more
here than just trying to view a .ps file (or you are working in a very
restricted environment), they are probably not the best tool.

--
Chris Spackman (he / him) ch...@osugisakae.com

ESL Coordinator The Graham Family of Schools
ESL Educator Columbus State Community College
Japan Exchange and Teaching Program Wajima, Ishikawa 1995-1998
Linux user since 1998 Linux User #137532

the...@sys-concept.com

unread,
Dec 23, 2021, 7:00:04 PM12/23/21
to
On 12/23/21 15:51, Spackman, Chris wrote:
> On 2021/12/23 at 01:57pm, the...@sys-concept.com wrote:
>> I have latest ghostscript installed: ghostscript-gpl-9.55.0-r1
>>
>> When I try to view a postsript file from command line: gs W-9_Form.ps
>> It works OK, but when I try to open same file in Xfce desktop it opens
>> and closes instantly.
>
> My guess would be that in XFCE, gs is successfully doing whatever
> (showing, interpreting, ??) in a terminal window and then immediately
> closing when done.
>
> Have you tried a GUI such as Okular or Evince? They both support viewing
> .ps files.
>
> In Thunar, just right click on the file and choose "Open with >" and
> either Okular or Evince if they are listed, or "Open with Other
> Application ..." if they aren't. (But if they aren't listed, you might
> have to install them, or a similar GUI viewer.)
>

When I try to open "ps" file with evince I'm getting an error:

evince W-9\ Form.ps

(evince:6866): dconf-CRITICAL **: 16:50:27.034: unable to create file '/run/user/1000/dconf/user': Permission denied. dconf will not work properly.

Mark Knecht

unread,
Dec 23, 2021, 7:30:04 PM12/23/21
to
Have you Googled it? I think this error has been all over the place recently.

- Mark

the...@sys-concept.com

unread,
Dec 23, 2021, 7:40:03 PM12/23/21
to



Thelma
Yes, I did; but couldn't find a solution yet.

the...@sys-concept.com

unread,
Dec 23, 2021, 7:50:04 PM12/23/21
to
On 12/23/21 17:19, Mark Knecht wrote:
Who suppose to be the owner of the file: /run/user/1000/dconf/user

-rw------- 1 root root 2 Dec 23 16:48 /run/user/1000/dconf/user

Miles Malone

unread,
Dec 23, 2021, 8:00:05 PM12/23/21
to
It shouldnt be root, should be your current user. Looks like you've
run a GUI program as root in your current session maybe, which has
created a root-owned dconf/user.

eric

unread,
Dec 23, 2021, 8:00:05 PM12/23/21
to
Shouldn't the owner be who ever has the uid of 1000? That is how it is
on my system.

Regards,

Eric

the...@sys-concept.com

unread,
Dec 23, 2021, 9:40:04 PM12/23/21
to
I deleted the that file: /run/user/1000/dconf/user (owned as root) it was empty anyhow.
Logout / Login and system recreated that file with my home user name.

But I still can not open "ps" file with evince. I'm getting an error message:

evince W-9\ Form.ps

(evince:19345): GLib-GObject-WARNING **: 19:26:40.904: invalid cast from 'GtkFileChooserNative' to 'GtkWidget'

Worth to note that I just upgraded my system.

the...@sys-concept.com

unread,
Dec 23, 2021, 10:00:03 PM12/23/21
to
On 12/23/21 19:36, the...@sys-concept.com wrote:
[snip]
>
> I deleted the that file: /run/user/1000/dconf/user (owned as root) it was empty anyhow.
> Logout / Login and system recreated that file with my home user name.
>
> But I still can not open "ps" file with evince. I'm getting an error message:
>
> evince W-9\ Form.ps
>
> (evince:19345): GLib-GObject-WARNING **: 19:26:40.904: invalid cast from 'GtkFileChooserNative' to 'GtkWidget'
>
> Worth to note that I just upgraded my system.
>

Solved:
The new 'evince' package was installed without "postscript" support, enable it solved the problem with evince but hylafax viewer "YajHFC" still has a problem viewing PS files.
Before upgrade I was able to view PS files with evince.

Now I'm getting strange output:
0 new messages