Bug 113507

Summary: Lyx - Associations Not Configured
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Alex Radu <exigentsky>
Component: OtherAssignee: Berthold Gunreben <bg>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P4 - Low CC: aj, ro
Version: RC 1   
Target Milestone: ---   
Hardware: i686   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alex Radu 2005-08-27 01:57:15 UTC
Lyx associations for PDF as well as many other formats are not configured by
default.This causes unpleasant errors to appear when one wants to view a Lyx
document as a PDF or deal with other such formats.

KPDF should probably become the default viewer for Lyx and KDVI should replace
XDVI as the default viewer.

BTW: Lyx also has not icon in the menu which makes it look like a rush job.
Comment 1 Berthold Gunreben 2005-08-29 09:17:48 UTC
I had no problem, viewing a lyx document with the default installation of lyx. 
Did you use YaST to install lyx? Else, did you run SuSEconfig after the 
install? 
Comment 2 Alex Radu 2005-08-29 17:15:28 UTC
No, it's not about viewing Lyx documents.It's about viewing the Lyx document and
other such things as a PDF. Select PDF from the view menu. 

Try this: 

1. make a new sample Lyx document
2. Go to the View menu and select PDF

It should be something like this:

"Cannot view file

No information for viewing PDF."

Marvel at the error. :p

This is a necessary step because Lyx is not WYSIWYG and so you still need to
preview it as a PDF to see what your clients would see.

Anyway, this is pretty easy to fix. Here's how:

Edit->Preferences->File Formats->PDF and then for viewer type something like
KPDF and click modify. Then go to the (dvipdfm) and  (pdflatex) entries and do
the same thing.

See it's pretty easy to fix, but it is still frustrating that this feature is
broken by default.
Comment 3 Berthold Gunreben 2005-08-30 06:55:50 UTC
Sorry, as I said earlier, I cannot reproduce. I did exactly what you proposed, 
and had no problems viewing the PDF.  
Comment 4 Alex Radu 2005-08-30 07:32:17 UTC
Have you configured Lyx's file format associations before? If not, I have no
idea why you cannot reproduce it. What program opens when you go to View->PDF
anyway?

I'll check on this when I install Beta 4. 
Comment 5 Berthold Gunreben 2005-08-30 07:37:01 UTC
ok, I see now the problem. lyx configure searches for 
acrobat, acrord32, gsview32, acroread, gv, ghostview and xpdf. If neither of 
these is installed, it will not configure this. 
 
Comment 6 Berthold Gunreben 2005-08-30 08:22:57 UTC
added kpdf to lyx configure script. 
Comment 7 Ruediger Oertel 2005-09-01 12:34:41 UTC
this solution is wrong (and will not even work ...) 
 
changing configure would only change behaviour if the app in question 
is installed during build (see #neededforbuild). 
 
but detecting this in configure is the wrong way to do this anyway, 
can't this be done at runtime ? 
 
Comment 8 Berthold Gunreben 2005-09-02 06:52:21 UTC
This configure is run by SuSEconfig.lyx. It has nothing to do with building 
lyx, but checks at runtime what software is installed.  
Comment 9 Alex Radu 2005-09-09 04:35:06 UTC
This is still not fixed. None of the PDF associations are configured in Lyx by 
default and I get an error. 
Comment 10 Berthold Gunreben 2005-09-09 07:46:04 UTC
please do a  
 
rm -r ~/.lyx 
 
run lyx in a console 
 
lyx | tee lyx.configure 
 
and attach lyx.configure file to this report 
 
Comment 11 Alex Radu 2005-09-27 03:07:23 UTC
I can't. The system doesn't boot graphically anymore. Also when I stry to start 
X manually using startx it crashes and gives me some error. I want to help, but 
I don't want to install the same SUSE RC just for this information.

I'll give you the necessary information when SUSE 10 is released or when another 
RC is out.
Comment 12 Alex Radu 2005-09-27 03:08:54 UTC
Sorry, actually I think I could, since I can login in the console. Problem is 
that after I do what you say, I have no idea how to extract the file and get it 
to you. 

Comment 13 Alex Radu 2005-09-27 03:20:11 UTC
OK, I did  the first step (rm -r ~/.lyx) and it didn't complain. However when I
tried to run lyx at the console and when I typed "lyx | tee lyx.configure" it
gave this error:

"lyx: cannot connect to X server"
Comment 14 Alex Radu 2005-10-08 22:03:29 UTC
I installed SUSE 10 EvalDVD and Lyx has everything configured right, PDFS work
without any fiddling. Should this be closed?
Comment 15 Berthold Gunreben 2005-10-25 15:32:29 UTC
thanks for the feedback. closing this bug now.