Re: support for xdg-open (Linux) and open (Mac)
Le 05/11/2012 03:51, Scott Kostyshak a écrit : xdg-open tries to open a file with the preferred application of a user for that file on Linux (which is usually the application that is used when you double click on a file in your desktop environment). I think the command open on Mac does the same thing. I'm guessing there's a similar Windows command? Note that for Mac OS and Windows, we already use the system's API. See AutoOpen stuff in os_(unix|win32).cpp. Unfortunately, no such API exists for linux. Adding support for these could be a solution to common questions I see such as: why does LyX open pdf files with Okular when I want it to open with Evince and similar complaints. You have seen in the 2008 discussion what the problems were at the time. It might be worth revisiting this problem now and see whether run-mailcap or xdg-open could be used these days. JMarc
Re: lyxclient.cpp
Le 03/11/2012 23:28, Richard Heck a écrit : This file does not seem to be cleaned up when we make clean or make distclean. I had to remove it manually in order to get the monolithic build to work. Fixed on master. Note that monolithic fails there: CXXliblyxqt4.o In file included from ../../../../master/src/frontends/qt4/GuiApplication.cpp:117, from liblyxqt4.cpp:20: /usr/include/X11/Xlib.h:210: error: reference to ‘Font’ is ambiguous /usr/include/X11/X.h:100: error: candidates are: typedef XID Font ../../../../master/src/Font.h:33: error: class lyx::Font /usr/include/X11/Xlib.h:210: error: reference to ‘Font’ is ambiguous /usr/include/X11/X.h:100: error: candidates are: typedef XID Font ../../../../master/src/Font.h:33: error: class lyx::Font /usr/include/X11/Xlib.h:210: error: ‘Font’ does not name a type /usr/include/X11/Xlib.h:316: error: reference to ‘Cursor’ is ambiguous /usr/include/X11/X.h:103: error: candidates are: typedef XID Cursor ../../../../master/src/Cursor.h:92: error: class lyx::Cursor /usr/include/X11/Xlib.h:316: error: reference to ‘Cursor’ is ambiguous /usr/include/X11/X.h:103: error: candidates are: typedef XID Cursor ../../../../master/src/Cursor.h:92: error: class lyx::Cursor /usr/include/X11/Xlib.h:316: error: ‘Cursor’ does not name a type /usr/include/X11/Xlib.h:1048: error: reference to ‘Font’ is ambiguous /usr/include/X11/X.h:100: error: candidates are: typedef XID Font [etc etc] JMarc
Re: support for xdg-open (Linux) and open (Mac)
In the Fedora distribution lyx packages, an xdg-open patch is applied and the resulting lyx seems to work correctly. On Nov 5, 2012, at 1:34, Jean-Marc Lasgouttes lasgout...@lyx.org wrote: Le 05/11/2012 03:51, Scott Kostyshak a écrit : xdg-open tries to open a file with the preferred application of a user for that file on Linux (which is usually the application that is used when you double click on a file in your desktop environment). I think the command open on Mac does the same thing. I'm guessing there's a similar Windows command? Note that for Mac OS and Windows, we already use the system's API. See AutoOpen stuff in os_(unix|win32).cpp. Unfortunately, no such API exists for linux. Adding support for these could be a solution to common questions I see such as: why does LyX open pdf files with Okular when I want it to open with Evince and similar complaints. You have seen in the 2008 discussion what the problems were at the time. It might be worth revisiting this problem now and see whether run-mailcap or xdg-open could be used these days. JMarc
Re: support for xdg-open (Linux) and open (Mac)
On 11/05/2012 10:00 AM, Kayvan Sylvan wrote: In the Fedora distribution lyx packages, an xdg-open patch is applied and the resulting lyx seems to work correctly. Can you post that patch? rh On Nov 5, 2012, at 1:34, Jean-Marc Lasgouttes lasgout...@lyx.org wrote: Le 05/11/2012 03:51, Scott Kostyshak a écrit : xdg-open tries to open a file with the preferred application of a user for that file on Linux (which is usually the application that is used when you double click on a file in your desktop environment). I think the command open on Mac does the same thing. I'm guessing there's a similar Windows command? Note that for Mac OS and Windows, we already use the system's API. See AutoOpen stuff in os_(unix|win32).cpp. Unfortunately, no such API exists for linux. Adding support for these could be a solution to common questions I see such as: why does LyX open pdf files with Okular when I want it to open with Evince and similar complaints. You have seen in the 2008 discussion what the problems were at the time. It might be worth revisiting this problem now and see whether run-mailcap or xdg-open could be used these days. JMarc
Re: support for xdg-open (Linux) and open (Mac)
Op 05-11-12 16:00, Kayvan Sylvan schreef: In the Fedora distribution lyx packages, an xdg-open patch is applied and the resulting lyx seems to work correctly. openSUSE, mageia and ubuntu (as it is coming with the distro, don't know about lyx-ppa) are using the same patch (it was once committed to lyx-svn, but reversed). I am manintaining the openSUSE packages and I have never heard a complaint about them. The reason I include the patch is that it is easier for beginners and for more advanced users easy to change. Sources with patch are here: https://build.opensuse.org/package/files?package=lyxproject=Publishing BTW: I have read the discussion of the past and understand the problems. It is not perfect. Regards, Cor
Re: support for xdg-open (Linux) and open (Mac)
Here is the patch. I include it in my Fedora packages at http://www.box.com/kslyx/ On Mon, Nov 5, 2012 at 7:18 AM, Richard Heck rgh...@bobjweil.com wrote: On 11/05/2012 10:00 AM, Kayvan Sylvan wrote: In the Fedora distribution lyx packages, an xdg-open patch is applied and the resulting lyx seems to work correctly. Can you post that patch? lyx-2.0.1-xdg_open.patch Description: Binary data
Re: support for xdg-open (Linux) and open (Mac)
Jean-Marc Lasgouttes wrote: You have seen in the 2008 discussion what the problems were at the time. It might be worth revisiting this problem now and see whether run-mailcap or xdg-open could be used these days. IMHO it is clear that xdg-open should be used in the long run, but not as long as it has severe drawbacks. If the problems do still exist it would be very nice if somebody could file a bug report in trac, including a summary of the problems that currently prevent LyX from using xdg-open. Then future questions could be directed to that bug report. Georg
Re: [LyX master] Correctly clean lyxclient.cpp in monolithic build.
Jean-Marc Lasgouttes wrote: commit 1b74d3e7295eabd07e4dc7fbe1fb8dcb22865a61 Author: Jean-Marc Lasgouttes lasgout...@lyx.org Date: Mon Nov 5 14:28:26 2012 +0100 Correctly clean lyxclient.cpp in monolithic build. diff --git a/src/client/Makefile.am b/src/client/Makefile.am index a79b720..3621ef1 100644 --- a/src/client/Makefile.am +++ b/src/client/Makefile.am @@ -44,6 +44,7 @@ BUILT_SOURCES = lyxclient.cpp CLEANFILES += lyxclient.cpp lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES) +CLEANFILES += lyxclient.cpp Please take a look four lines above :) Pavel
Re: TeX capacity exceeded
On 11/05/2012 03:49 PM, Robert Adolle wrote: How to extend this capacity ? Thank you very much for help. You almost never actually need to do this, and I'm not sure it's even possible. The problem is some kind of error elsewhere in the document. Richard
Re: TeX capacity exceeded
It is possible with a huge tikz plot (e.g. a scatter plot with more than ten thousand points). If anybody is interested and uses R, I can give an example. It might be irrelevant to the original post here, though. Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Nov 5, 2012 at 4:22 PM, Richard Heck rgh...@lyx.org wrote: On 11/05/2012 03:49 PM, Robert Adolle wrote: How to extend this capacity ? Thank you very much for help. You almost never actually need to do this, and I'm not sure it's even possible. The problem is some kind of error elsewhere in the document. Richard
Re: support for xdg-open (Linux) and open (Mac)
Le 05/11/2012 03:51, Scott Kostyshak a écrit : xdg-open tries to open a file with the "preferred" application of a user for that file on Linux (which is usually the application that is used when you double click on a file in your desktop environment). I think the command "open" on Mac does the same thing. I'm guessing there's a similar Windows command? Note that for Mac OS and Windows, we already use the system's API. See AutoOpen stuff in os_(unix|win32).cpp. Unfortunately, no such API exists for linux. Adding support for these could be a solution to common questions I see such as: "why does LyX open pdf files with Okular when I want it to open with Evince" and similar complaints. You have seen in the 2008 discussion what the problems were at the time. It might be worth revisiting this problem now and see whether run-mailcap or xdg-open could be used these days. JMarc
Re: lyxclient.cpp
Le 03/11/2012 23:28, Richard Heck a écrit : This file does not seem to be cleaned up when we "make clean" or "make distclean". I had to remove it manually in order to get the monolithic build to work. Fixed on master. Note that monolithic fails there: CXXliblyxqt4.o In file included from ../../../../master/src/frontends/qt4/GuiApplication.cpp:117, from liblyxqt4.cpp:20: /usr/include/X11/Xlib.h:210: error: reference to ‘Font’ is ambiguous /usr/include/X11/X.h:100: error: candidates are: typedef XID Font ../../../../master/src/Font.h:33: error: class lyx::Font /usr/include/X11/Xlib.h:210: error: reference to ‘Font’ is ambiguous /usr/include/X11/X.h:100: error: candidates are: typedef XID Font ../../../../master/src/Font.h:33: error: class lyx::Font /usr/include/X11/Xlib.h:210: error: ‘Font’ does not name a type /usr/include/X11/Xlib.h:316: error: reference to ‘Cursor’ is ambiguous /usr/include/X11/X.h:103: error: candidates are: typedef XID Cursor ../../../../master/src/Cursor.h:92: error: class lyx::Cursor /usr/include/X11/Xlib.h:316: error: reference to ‘Cursor’ is ambiguous /usr/include/X11/X.h:103: error: candidates are: typedef XID Cursor ../../../../master/src/Cursor.h:92: error: class lyx::Cursor /usr/include/X11/Xlib.h:316: error: ‘Cursor’ does not name a type /usr/include/X11/Xlib.h:1048: error: reference to ‘Font’ is ambiguous /usr/include/X11/X.h:100: error: candidates are: typedef XID Font [etc etc] JMarc
Re: support for xdg-open (Linux) and open (Mac)
In the Fedora distribution lyx packages, an xdg-open patch is applied and the resulting lyx seems to work correctly. On Nov 5, 2012, at 1:34, Jean-Marc Lasgoutteswrote: > Le 05/11/2012 03:51, Scott Kostyshak a écrit : >> xdg-open tries to open a file with the "preferred" application of a >> user for that file on Linux (which is usually the application that is >> used when you double click on a file in your desktop environment). I >> think the command "open" on Mac does the same thing. I'm guessing >> there's a similar Windows command? > > Note that for Mac OS and Windows, we already use the system's API. See > AutoOpen stuff in os_(unix|win32).cpp. Unfortunately, no such API exists > for linux. > >> Adding support for these could be a solution to common questions I see such >> as: >> "why does LyX open pdf files with Okular when I want it to open with Evince" >> and similar complaints. > > You have seen in the 2008 discussion what the problems were at the time. > It might be worth revisiting this problem now and see whether > run-mailcap or xdg-open could be used these days. > > JMarc >
Re: support for xdg-open (Linux) and open (Mac)
On 11/05/2012 10:00 AM, Kayvan Sylvan wrote: In the Fedora distribution lyx packages, an xdg-open patch is applied and the resulting lyx seems to work correctly. Can you post that patch? rh On Nov 5, 2012, at 1:34, Jean-Marc Lasgoutteswrote: Le 05/11/2012 03:51, Scott Kostyshak a écrit : xdg-open tries to open a file with the "preferred" application of a user for that file on Linux (which is usually the application that is used when you double click on a file in your desktop environment). I think the command "open" on Mac does the same thing. I'm guessing there's a similar Windows command? Note that for Mac OS and Windows, we already use the system's API. See AutoOpen stuff in os_(unix|win32).cpp. Unfortunately, no such API exists for linux. Adding support for these could be a solution to common questions I see such as: "why does LyX open pdf files with Okular when I want it to open with Evince" and similar complaints. You have seen in the 2008 discussion what the problems were at the time. It might be worth revisiting this problem now and see whether run-mailcap or xdg-open could be used these days. JMarc
Re: support for xdg-open (Linux) and open (Mac)
Op 05-11-12 16:00, Kayvan Sylvan schreef: In the Fedora distribution lyx packages, an xdg-open patch is applied and the resulting lyx seems to work correctly. openSUSE, mageia and ubuntu (as it is coming with the distro, don't know about lyx-ppa) are using the same patch (it was once committed to lyx-svn, but reversed). I am manintaining the openSUSE packages and I have never heard a complaint about them. The reason I include the patch is that it is easier for beginners and for more advanced users easy to change. Sources with patch are here: https://build.opensuse.org/package/files?package=lyx=Publishing BTW: I have read the discussion of the past and understand the problems. It is not perfect. Regards, Cor
Re: support for xdg-open (Linux) and open (Mac)
Here is the patch. I include it in my Fedora packages at http://www.box.com/kslyx/ On Mon, Nov 5, 2012 at 7:18 AM, Richard Heckwrote: > On 11/05/2012 10:00 AM, Kayvan Sylvan wrote: > >> In the Fedora distribution lyx packages, an xdg-open patch is applied >> and the resulting lyx seems to work correctly. >> > Can you post that patch? > lyx-2.0.1-xdg_open.patch Description: Binary data
Re: support for xdg-open (Linux) and open (Mac)
Jean-Marc Lasgouttes wrote: > You have seen in the 2008 discussion what the problems were at the time. > It might be worth revisiting this problem now and see whether > run-mailcap or xdg-open could be used these days. IMHO it is clear that xdg-open should be used in the long run, but not as long as it has severe drawbacks. If the problems do still exist it would be very nice if somebody could file a bug report in trac, including a summary of the problems that currently prevent LyX from using xdg-open. Then future questions could be directed to that bug report. Georg
Re: [LyX master] Correctly clean lyxclient.cpp in monolithic build.
Jean-Marc Lasgouttes wrote: > commit 1b74d3e7295eabd07e4dc7fbe1fb8dcb22865a61 > Author: Jean-Marc Lasgouttes> Date: Mon Nov 5 14:28:26 2012 +0100 > > Correctly clean lyxclient.cpp in monolithic build. > > diff --git a/src/client/Makefile.am b/src/client/Makefile.am > index a79b720..3621ef1 100644 > --- a/src/client/Makefile.am > +++ b/src/client/Makefile.am > @@ -44,6 +44,7 @@ BUILT_SOURCES = lyxclient.cpp > CLEANFILES += lyxclient.cpp > > lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES) > +CLEANFILES += lyxclient.cpp Please take a look four lines above :) Pavel
Re: TeX capacity exceeded
On 11/05/2012 03:49 PM, Robert Adolle wrote: How to extend this capacity ? Thank you very much for help. You almost never actually need to do this, and I'm not sure it's even possible. The problem is some kind of error elsewhere in the document. Richard
Re: TeX capacity exceeded
It is possible with a huge tikz plot (e.g. a scatter plot with more than ten thousand points). If anybody is interested and uses R, I can give an example. It might be irrelevant to the original post here, though. Regards, Yihui -- Yihui XiePhone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Nov 5, 2012 at 4:22 PM, Richard Heck wrote: > On 11/05/2012 03:49 PM, Robert Adolle wrote: >> >> How to extend this capacity ? >> Thank you very much for help. >> > You almost never actually need to do this, and I'm not sure it's even > possible. The problem is some kind of error elsewhere in the document. > > Richard >