LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-09-2024, 05:19 PM   #1
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 229

Rep: Reputation: 45
SW-15.0 rolling upgrade from 14.2 & xpdf does not open .


Hello All , I've just recently updated my workstation to SW-15.0 via rolling upgrade from 14.2 .
And now xpdf does not open . The file selected below does open in Firefox , so the pdf s/b openable .

NEXT odd thing is that using sudo xpdf opens the same file in the same session of the user !?!?!

Code:
$ xpdf vax_doc-20180323a.pdf
xpdf version 4.05 [www.xpdfreader.com]
Copyright 1996-2024 Glyph & Cog, LLC
Usage: xpdf [options] [<PDF-file> [:<page> | +<dest>]] ...
  -open                 : open file using a default remote server
  -rv                   : reverse video
  -papercolor <string>  : color of paper background
  -mattecolor <string>  : color of matte background
  -fsmattecolor <string>: color of matte background in full-screen mode
  -z <string>           : initial zoom level (percent, 'page', 'width')
  -rot <int>            : initial page rotation: 0, 90, 180, or 270
  -aa <string>          : enable font anti-aliasing: yes, no
  -aaVector <string>    : enable vector anti-aliasing: yes, no
  -enc <string>         : output text encoding name
  -pw <string>          : password (for encrypted files)
  -fullscreen           : run in full-screen (presentation) mode
  -remote <string>      : remote server mode - remaining args are commands
  -cmd                  : print commands as they're executed
  -tabstate <string>    : file for saving/loading tab state
  -cfg <string>         : configuration file to use in place of .xpdfrc
  -v                    : print copyright and version info
  -h                    : print usage information
  -help                 : print usage information
  --help                : print usage information
  -?                    : print usage information
Code:
$ sudo xpdf vax_doc-20180323a.pdf
Password: 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Then displays the file ... ???

What the heck is going on here ?
 
Old 04-09-2024, 05:46 PM   #2
theodore.s
Member
 
Registered: Jul 2018
Location: Athens, Greece
Distribution: Slackware
Posts: 57

Rep: Reputation: 29
Alias?

It looks like xpdf is called with some non-existant option. I get the same "Usage..." output when I run something like 'xpdf --idontexist'.

Try

Code:
which xpdf
... to see what exactly is called (it should be just '/usr/bin/xpdf'). Maybe there is a forgotten alias that calls xpdf with a deprecated option.
 
1 members found this post helpful.
Old 04-09-2024, 07:55 PM   #3
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 229

Original Poster
Rep: Reputation: 45
@theodore.s , Thank You .

alias indeed , Tho the options used were/are acceptable by 14.2's xpdf .
I Will look into options that match .

Code:
$ alias xpdf
alias xpdf='xpdf -g 1600x1900 -z page'
 
Old 04-09-2024, 08:37 PM   #4
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 229

Original Poster
Rep: Reputation: 45
@theodore.s , When I execute the furthest below command line the same output is shown .

Hmm , man xpdf of 08 Feb 2024 , shows a '-geometry' option , though the output below sure doesn't .
Hmmm , Reading the manpage a LOT Closer shows that the -geometry is a config file option .

Ok , I've found my work around !

Tho why the -g option disappeared for the command line is disturbing .

Note the '-z' option is still included in the command line options .

Code:
       -geometry geometry
              Set the initial window geometry.
Code:
 /usr/bin/xpdf -g 1600x1900 vax_doc-20180323a.pdf
 
Old 04-10-2024, 03:31 AM   #5
theodore.s
Member
 
Registered: Jul 2018
Location: Athens, Greece
Distribution: Slackware
Posts: 57

Rep: Reputation: 29
Quote:
Originally Posted by babydr View Post
Tho why the -g option disappeared for the command line is disturbing .

Note the '-z' option is still included in the command line options .

Code:
       -geometry geometry
              Set the initial window geometry.
Yes, this is a strange (and not backwards compatible) change. In Slackware 14.2 xpdf was in version 3.04 and the option was:

Code:
       -g geometry
              Set the initial window geometry.  (-geometry is equivalent.)  [X
              resource: xpdf.geometry]
Well, at least you have your solution.
 
Old 04-10-2024, 07:01 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
From Wikipedia
Quote:
Xpdf is a free and open-source PDF viewer and toolkit based on the Qt framework.[4] Versions prior to 4.00 were written for the X Window System and Motif.
Perhaps the loss of -g from the command line is not so disturbing/strange.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Rolling Rhino: A rolling-release remix of Ubuntu LXer Syndicated Linux News 1 08-17-2023 12:24 PM
LXer: Convert Ubuntu Into Rolling Release Using Rolling Rhino Script LXer Syndicated Linux News 0 07-01-2020 12:13 PM
[SOLVED] xpdf crash with Current (xpdf 4.02) garpu Slackware 14 10-08-2019 11:45 AM
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 12:39 PM
Gotta love those &#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration