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

    From thelma@sys-concept.com@21:1/5 to All on Thu Dec 23 22:00:02 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Spackman, Chris@21:1/5 to thelma@sys-concept.com on Fri Dec 24 00:00:02 2021
    On 2021/12/23 at 01:57pm, thelma@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) chris@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From thelma@sys-concept.com@21:1/5 to Chris on Fri Dec 24 01:00:01 2021
    On 12/23/21 15:51, Spackman, Chris wrote:
    On 2021/12/23 at 01:57pm, thelma@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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From eric@21:1/5 to thelma@sys-concept.com on Fri Dec 24 02:00:02 2021
    On 12/23/21 5:40 PM, thelma@sys-concept.com wrote:
    On 12/23/21 17:19, Mark Knecht wrote:
    On Thu, Dec 23, 2021 at 4:53 PM <thelma@sys-concept.com> wrote:

    On 12/23/21 15:51, Spackman, Chris wrote:
    On 2021/12/23 at 01:57pm, thelma@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.


    Have you Googled it? I think this error has been all over the place
    recently.

    - Mark

    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



    Shouldn't the owner be who ever has the uid of 1000? That is how it is
    on my system.

    Regards,

    Eric

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to thelma@sys-concept.com on Fri Dec 24 01:30:01 2021
    On Thu, Dec 23, 2021 at 4:53 PM <thelma@sys-concept.com> wrote:

    On 12/23/21 15:51, Spackman, Chris wrote:
    On 2021/12/23 at 01:57pm, thelma@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.


    Have you Googled it? I think this error has been all over the place recently.

    - Mark

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From thelma@sys-concept.com@21:1/5 to Mark Knecht on Fri Dec 24 01:40:02 2021
    Thelma
    On 12/23/21 17:19, Mark Knecht wrote:
    On Thu, Dec 23, 2021 at 4:53 PM <thelma@sys-concept.com> wrote:

    On 12/23/21 15:51, Spackman, Chris wrote:
    On 2021/12/23 at 01:57pm, thelma@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.


    Have you Googled it? I think this error has been all over the place recently.

    - Mark

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From thelma@sys-concept.com@21:1/5 to Mark Knecht on Fri Dec 24 01:50:02 2021
    On 12/23/21 17:19, Mark Knecht wrote:
    On Thu, Dec 23, 2021 at 4:53 PM <thelma@sys-concept.com> wrote:

    On 12/23/21 15:51, Spackman, Chris wrote:
    On 2021/12/23 at 01:57pm, thelma@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.


    Have you Googled it? I think this error has been all over the place recently.

    - Mark

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Miles Malone@21:1/5 to thelma@sys-concept.com on Fri Dec 24 02:00:03 2021
    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.

    On Fri, 24 Dec 2021 at 10:40, <thelma@sys-concept.com> wrote:

    On 12/23/21 17:19, Mark Knecht wrote:
    On Thu, Dec 23, 2021 at 4:53 PM <thelma@sys-concept.com> wrote:

    On 12/23/21 15:51, Spackman, Chris wrote:
    On 2021/12/23 at 01:57pm, thelma@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.


    Have you Googled it? I think this error has been all over the place recently.

    - Mark

    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



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From thelma@sys-concept.com@21:1/5 to thelma@sys-concept.com on Fri Dec 24 04:00:01 2021
    On 12/23/21 19:36, thelma@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:

    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From thelma@sys-concept.com@21:1/5 to eric on Fri Dec 24 03:40:01 2021
    On 12/23/21 17:54, eric wrote:
    On 12/23/21 5:40 PM, thelma@sys-concept.com wrote:
    On 12/23/21 17:19, Mark Knecht wrote:
    On Thu, Dec 23, 2021 at 4:53 PM <thelma@sys-concept.com> wrote:

    On 12/23/21 15:51, Spackman, Chris wrote:
    On 2021/12/23 at 01:57pm, thelma@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.


    Have you Googled it? I think this error has been all over the place recently.

    - Mark

    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



    Shouldn't the owner be who ever has the uid of 1000? That is how it is on my system.

    Regards,

    Eric

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)