Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-14 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Using mimetypes for formats is something that should happen Georg> anyway. We would simply add the mime type as a format property. Georg> That would also make the kde-specific code more simple, and I Georg> guess it couldd be useful fo

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-14 Thread Georg Baum
Jean-Marc Lasgouttes wrote: >> "José" == José Matos <[EMAIL PROTECTED]> writes: > > José> On Sunday 13 August 2006 21:39, Jean-Marc Lasgouttes wrote: >>> Of course, what is missing here is the possibility of knowing >>> whether a format is handled. This is done by xdg-mime (except that >>> we

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread Jean-Marc Lasgouttes
> "José" == José Matos <[EMAIL PROTECTED]> writes: José> Fair enough, I will leave this into yours and George's José> competent hands. ;-) So you are at it again :) JMarc

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread José Matos
On Sunday 13 August 2006 22:38, Jean-Marc Lasgouttes wrote: > Well I'd rather bind to a proper library, but it seems that > the libray from the xdg people is not yet up to this. Georg had some > kde specific code, but it means linking against the full KDE shebang. > > So I do not propose much for n

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread Jean-Marc Lasgouttes
> "José" == José Matos <[EMAIL PROTECTED]> writes: José> On Sunday 13 August 2006 21:39, Jean-Marc Lasgouttes wrote: >> Of course, what is missing here is the possibility of knowing >> whether a format is handled. This is done by xdg-mime (except that >> we do not have mime types for formats (

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread José Matos
On Sunday 13 August 2006 21:39, Jean-Marc Lasgouttes wrote: > Of course, what is missing here is the possibility of knowing whether > a format is handled. This is done by xdg-mime (except that we do not > have mime types for formats (but we should). How do you propose to do this? > JMarc -- J

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread Jean-Marc Lasgouttes
> "José" == José Matos <[EMAIL PROTECTED]> writes: José> and the package (small) José> http://portland.freedesktop.org/download/xdg-utils-1.0beta3.tgz So basically, the script detects desktop environment like this: detectDE() { if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; elif

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread José Matos
On Sunday 13 August 2006 20:34, Jean-Marc Lasgouttes wrote: > > But not my mandriva 2006. Could you send the xdg-open script, so that > we can see what it does? The page http://portland.freedesktop.org/wiki/ and the package (small) http://portland.freedesktop.org/download/xdg-utils-1.0beta3.tgz

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread Georg Baum
Am Sonntag, 13. August 2006 21:34 schrieb Jean-Marc Lasgouttes: > But not my mandriva 2006. Could you send the xdg-open script, so that > we can see what it does? You can get it from here: http://portland.freedesktop.org/wiki/ Georg

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread Jean-Marc Lasgouttes
> "José" == José Matos <[EMAIL PROTECTED]> writes: José> On Friday 11 August 2006 15:07, Per Olofsson wrote: >> xdg-open is a shell script which you can distribute together with >> LyX, so it doesn't have to be widespread. You use it like: >> >> PATH=$PATH:/usr/share/lyx/xdg-utils xdg-open /s

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-13 Thread José Matos
On Friday 11 August 2006 15:07, Per Olofsson wrote: > xdg-open is a shell script which you can distribute together with LyX, > so it doesn't have to be widespread. You use it like: > > PATH=$PATH:/usr/share/lyx/xdg-utils > xdg-open /some/path > > So if the distribution already has xdg-open, that on

Re: Bug#381622: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-11 Thread Per Olofsson
Jean-Marc Lasgouttes: > > "Per" == Per Olofsson <[EMAIL PROTECTED]> writes: > > Per> Jean-Marc Lasgouttes: > >> What about that: mkdir /tmp/tempuserdir lyx -userdir > >> /tmp/tempuserdir -e latex foo.lyx rm -rf /tmp/tempuserdir > > Per> Yes, I think that's an acceptable workaround. > > Could

Re: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-10 Thread Jean-Marc Lasgouttes
> "Per" == Per Olofsson <[EMAIL PROTECTED]> writes: Per> Jean-Marc Lasgouttes: >> What about that: mkdir /tmp/tempuserdir lyx -userdir >> /tmp/tempuserdir -e latex foo.lyx rm -rf /tmp/tempuserdir Per> Yes, I think that's an acceptable workaround. Could you confirm that the patch I sent fits

Re: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-10 Thread Per Olofsson
Jean-Marc Lasgouttes: > What about that: > mkdir /tmp/tempuserdir > lyx -userdir /tmp/tempuserdir -e latex foo.lyx > rm -rf /tmp/tempuserdir Yes, I think that's an acceptable workaround. > Per> The best would be if configure.py was removed completely and > Per> everything was detected at runtime

Re: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-09 Thread Jean-Marc Lasgouttes
> "Per" == Per Olofsson <[EMAIL PROTECTED]> writes: Per> Jean-Marc Lasgouttes: >> Thanks for the explanations. Could you try to see whether the patch >> I sent will fix the problem? I believe it should create a .lyx >> directory in root home directory and work correctly from there. >> >> Is i

Re: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-09 Thread Per Olofsson
Jean-Marc Lasgouttes: > Thanks for the explanations. Could you try to see whether the patch I > sent will fix the problem? I believe it should create a .lyx directory > in root home directory and work correctly from there. > > Is it an acceptable solution? It's the correct fix, yes, but I don't

Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-09 Thread Jean-Marc Lasgouttes
> "Sven" == Sven Hoexter <[EMAIL PROTECTED]> writes: Sven> On Wed, Aug 09, 2006 at 01:03:43PM +0200, Jean-Marc Lasgouttes Sven> wrote: Hello Jean-Marc, hello *, >> There is no reason why we should not reconfigure in batch mode. >> >> Comments? I plan to apply soon. Sven> Ok I'll comment a li

Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-09 Thread Sven Hoexter
On Wed, Aug 09, 2006 at 01:03:43PM +0200, Jean-Marc Lasgouttes wrote: Hello Jean-Marc, hello *, > There is no reason why we should not reconfigure in batch mode. > > Comments? I plan to apply soon. Ok I'll comment a little bit about how this issue was found and what problems might be related. S

[PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-09 Thread Jean-Marc Lasgouttes
There is no reason why we should not reconfigure in batch mode. Comments? I plan to apply soon. JMarc Index: src/lyx_main.C === --- src/lyx_main.C (revision 14576) +++ src/lyx_main.C (working copy) @@ -458,12 +458,12 @@ void LyX::i