pol wrote:
Has anybody ever tried to build a plug-in to enable web browsers to display lyx files? Lyx files would be displayed to users through konqueror, safari, firefox, ie-explorer toogether with a warning that, to print that file, latex is to be installed on the local station. What do you think?
Well, mozplugger can display anything, so you already got it. Stick something like this in /etc/mozpluggerrc: ### LyX text/plain:lyx:LyX document repeat swallow(lyx): lyx "$file"
Now, firefox (and any other browser that works with mozplugger) will be able to launch lyx as a plugin. You can then view and edit the lyx file with an instance of LyX running inside firefox. :-) Unfortunately, this only works if you use "File->Open" from the firefox menu, or if you download from a webserver that is nice enough to _not_ report any content-type for the lyx file. My webserver (apache) is stupid enough to call a lyx file "text/plain", and of course you can't override text/plain in mozpluggerrc because the browser believe it can handle text/plain itself and so it stupidly displays the lyx file as a text file. If someone has a solution to this problem (make mozplugger go by extension only, or fix all the webservers in the world so they don't assume a lyx file is plain text) then that'd be nice. Helge Hafting
