You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, September 25th 2007, 4:37am

KPDF won't open files under Ubuntu without sudo

Running KPDF 0.5.6 with KDE 3.5.6 with a [K]Ubuntu Feisty distro that I just installed.

The problem is that when I try to open any PDF with KPDF, I see a window that says "Loaded a one-page document" and none of my document is displayed. However, if I invoke kpdf via sudo:

alex@lingeek:/home/manuals/sirius$ sudo kpdf jansoapr.pdf
Password:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server :0.0
DCOP aborting call from 'anonymous-8102' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.

as you see, I get a lot of errors, but KPDF displays the document correctly. I've tried setting the
file privileges for the PDFs to 777 but that doesn't seem to help. And, anyway, I can open these
PDF files with Evince (a little buggy, but not bad), xpdf (a little primitive), and acroread (a snorting pig) without using sudo.

I must be doing something stupid/wrong but I can't find any diagnostic information from KPDF. Nothing in the logs, nothing displays in the Konsole window where I invoke KPDF. Nothing.

When I request Properties for the PDF in KPDF, it shows "No document opened." I'd like to use KPDF, but running it via sudo is too much hassle and seems crazy, anyway. Does anyone have a clue for the clueless? Should I go to an Ubuntu forum?

Thanks,
Alex