LinuxQuestions.org
Help answer threads with 0 replies.
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 01-17-2021, 04:13 PM   #1
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
Slackware64-current: GIMP can't do Print Preview


GIMP 2.10.22 on Slackware64-current is unable to do Print Preview. There is no visible error message and nothing happens. In a terminal window or ~/.xsession-errors you will see a usage message from xpdf.

I determined that GIMP is doing Print Preview by trying to run 'xpdf -q /tmp/FILE.pdf'. However, the -q option was removed from xpdf between version 3.04 in Slackware-14.2 and version 4.02 in Slackware64-current. So it doesn't work.

But that's as far as I got. I read in the Gtk+3 documentation that the default Gtk+3 print preview command uses evince, not xpdf. So either this was changed somehow in Slackware, or GIMP isn't using Gtk+3 to do print preview.

There really should be a wrapper script between GIMP and xpdf anyway, so that the temporary file can be deleted after viewing. That's what I did in GIMP-2.8.x on Slackware-14.2, using a setting in ~/.gtkrc-2.0. But I can't figure out how to do this in Gtk+3 - or if it would work with GIMP.

Any ideas?
 
Old 01-17-2021, 04:46 PM   #2
mickski56
Member
 
Registered: Mar 2018
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
Just tried gimps print preview in a vm and it worked fine. The vm is fully up to date Fri Jan 15.
So can't really say where your problem lies. I can say gimp 2.10.22 is definitely gtk2 based if that's any help.
 
Old 01-17-2021, 05:26 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
Yes: That was the missing piece. I just assumed GIMP-2.10 was using Gtk+3, but no, that isn't planned until GIMP-3.

The problem was in my Gtk+2 setup. I had ~/gtkrc-2.0 setting gtk-print-preview-command to point to a script, which used xpdf -q, and cleaned up the temporary files after. I removed -q from the script and it works now.

Also it turns out if you don't set gtk-print-preview-command, GIMP defaults to first trying evince (which will fail with a message), then trying xpdf, which will work. Except it won't clean up the temporary files.

Thanks for the missing clue.
 
  


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
SNAP my ssss this installed gimp and gimp no want to work right 2.10 gimp. BW-userx Linux - Software 1 12-07-2018 01:37 PM
LXer: GIMP Painter And GIMP Paint Studio Transform GIMP Into The Ultimate Painting Tool LXer Syndicated Linux News 0 02-08-2011 05:40 PM
gimp / gutenprint prob: gimp does not print bitpicker Linux - Software 0 04-08-2005 07:38 AM
Mozilla problems: Print/print preview doesn't work, not recording sites in history... andy_g_gray Linux - Software 3 01-23-2004 06:27 AM
gimp (1.3.21) and gimp-perl - need help installing gimp-perl keex Slackware 0 10-22-2003 03:54 PM

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

All times are GMT -5. The time now is 04:39 PM.

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