Re: [Libreoffice] -conver-to on master
Seems to work for me without the patch. How old or new is your master, please? [ Or I guess you are running without any input files! for the conversion to work! ] The patch looks non-intrusive and if it works it should be good - assuming you have made sure that lo is not running in the background after issuing the command. On 04/18/2011 01:32 AM, Miklos Vajna wrote: On Sun, Apr 17, 2011 at 08:51:31AM +0530, Muthu Subramanian K sumu...@novell.com wrote: hmm...no idea on this one...I haven't touched the code in a long time now... you would want to diff the desktop module and see? As Andreas points out, it seems the problem is that in 3.3 -conver-to implied -headless, in 3.4 it does not. The attached patch fixes the issue for me. Does it look sane? Thanks. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] -conver-to on master
On Mon, Apr 18, 2011 at 01:52:13PM +0530, Muthu Subramanian K sumu...@novell.com wrote: Seems to work for me without the patch. How old or new is your master, please? [ Or I guess you are running without any input files! for the conversion to work! ] Hmm, this is interesting. ;) The build I'm hacking here is from Mar 26, when I tested it with a newer master (3 days old), I get a different behaviour: --conver-to does not initiate any conversion at all: ~/git/libreoffice/master/install/program$ ./soffice.bin --nologo --convert-to doc --outdir /home/vmiklos /home/vmiklos/hello.rtf --headless ~/git/libreoffice/master/install/program$ ls ~/hello.doc /usr/bin/ls: cannot access /home/vmiklos/hello.doc: No such file or directory In case I omit --headless, the GUI starts up fine, but there are still no conversion. The patch looks non-intrusive and if it works it should be good - assuming you have made sure that lo is not running in the background after issuing the command. Sure, no running instance in the background. What version is running fine for you? Thanks. pgpvXqD45ZzNY.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] -conver-to on master
On Mon, Apr 18, 2011 at 12:36 PM, Miklos Vajna vmik...@frugalware.org wrote: On Mon, Apr 18, 2011 at 01:52:13PM +0530, Muthu Subramanian K sumu...@novell.com wrote: Seems to work for me without the patch. How old or new is your master, please? [ Or I guess you are running without any input files! for the conversion to work! ] Hmm, this is interesting. ;) The build I'm hacking here is from Mar 26, when I tested it with a newer master (3 days old), I get a different behaviour: --conver-to does not initiate any conversion at all: ~/git/libreoffice/master/install/program$ ./soffice.bin --nologo --convert-to doc --outdir /home/vmiklos /home/vmiklos/hello.rtf --headless ~/git/libreoffice/master/install/program$ ls ~/hello.doc /usr/bin/ls: cannot access /home/vmiklos/hello.doc: No such file or directory In case I omit --headless, the GUI starts up fine, but there are still no conversion. The patch looks non-intrusive and if it works it should be good - assuming you have made sure that lo is not running in the background after issuing the command. Sure, no running instance in the background. What version is running fine for you? I tried LibreOffice 3.4 (pre-release) and it works with 'csv' to 'ods' conversion, as described in http://www.mail-archive.com/users@libreoffice.org/msg03444.html ./soffice.bin --headless --convert-to ods /tmp/test.csv convert /tmp/test.csv - /opt/libreoffice/program/test.ods using calc8 Overwriting: /opt/libreoffice/program/test.ods (in my case I still have the encoding issues described in the above URL). Simos ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] -conver-to on master
On Mon, Apr 18, 2011 at 12:48:16PM +0300, Simos Xenitellis simos.li...@googlemail.com wrote: I tried LibreOffice 3.4 (pre-release) and it works with 'csv' to 'ods' conversion, as described in http://www.mail-archive.com/users@libreoffice.org/msg03444.html ./soffice.bin --headless --convert-to ods /tmp/test.csv convert /tmp/test.csv - /opt/libreoffice/program/test.ods using calc8 Overwriting: /opt/libreoffice/program/test.ods Wow, this is interesting. :) ~/git/libreoffice/master/install/program$ ./soffice.bin --headless --convert-to ods test.csv convert /home/vmiklos/git/libreoffice/master/install/program/test.csv - /home/vmiklos/git/libreoffice/master/install/program/test.ods using calc8 - works fine ~/git/libreoffice/master/install/program$ file hello.odt hello.odt: OpenDocument Text ~/git/libreoffice/master/install/program$ ./soffice.bin --headless --convert-to rtf hello.odt convert /home/vmiklos/git/libreoffice/master/install/program/hello.odt - /home/vmiklos/git/libreoffice/master/install/program/hello.rtf using Rich Text Format Error: Please reverify input parameters... Maybe something is wrong with the RTF export filter registration? I'll try to have a look at it (I'm not yet familiar with this new passive registration stuff). Thanks. pgprVGjk5LYjE.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] -conver-to on master
On Mon, Apr 18, 2011 at 2:08 PM, Miklos Vajna vmik...@frugalware.org wrote: On Mon, Apr 18, 2011 at 12:48:16PM +0300, Simos Xenitellis simos.li...@googlemail.com wrote: I tried LibreOffice 3.4 (pre-release) and it works with 'csv' to 'ods' conversion, as described in http://www.mail-archive.com/users@libreoffice.org/msg03444.html ./soffice.bin --headless --convert-to ods /tmp/test.csv convert /tmp/test.csv - /opt/libreoffice/program/test.ods using calc8 Overwriting: /opt/libreoffice/program/test.ods Wow, this is interesting. :) ~/git/libreoffice/master/install/program$ ./soffice.bin --headless --convert-to ods test.csv convert /home/vmiklos/git/libreoffice/master/install/program/test.csv - /home/vmiklos/git/libreoffice/master/install/program/test.ods using calc8 - works fine ~/git/libreoffice/master/install/program$ file hello.odt hello.odt: OpenDocument Text ~/git/libreoffice/master/install/program$ ./soffice.bin --headless --convert-to rtf hello.odt convert /home/vmiklos/git/libreoffice/master/install/program/hello.odt - /home/vmiklos/git/libreoffice/master/install/program/hello.rtf using Rich Text Format Error: Please reverify input parameters... Maybe something is wrong with the RTF export filter registration? I'll try to have a look at it (I'm not yet familiar with this new passive registration stuff). The encoding bug that I mentioned earlier in LibreOffice headless has now a bugzilla report, https://bugs.freedesktop.org/show_bug.cgi?id=36313 I am not familiar on how filters work. If you have give a high-level description (which files to look into), it would be great. I assume that both bugs are similar. Simos ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] -conver-to on master
On Mon, Apr 18, 2011 at 01:08:42PM +0200, Miklos Vajna vmik...@frugalware.org wrote: ~/git/libreoffice/master/install/program$ file hello.odt hello.odt: OpenDocument Text ~/git/libreoffice/master/install/program$ ./soffice.bin --headless --convert-to rtf hello.odt convert /home/vmiklos/git/libreoffice/master/install/program/hello.odt - /home/vmiklos/git/libreoffice/master/install/program/hello.rtf using Rich Text Format Error: Please reverify input parameters... Maybe something is wrong with the RTF export filter registration? I'll try to have a look at it (I'm not yet familiar with this new passive registration stuff). I did a full rebuild of master and now it's better: 1) ./soffice.bin --convert-to doc --outdir ../../../lo-test-files/writer ../../../lo-test-files/writer/hello.odt works fine, so my patch is not necessary. 2) The same with RTF or DOCX results in Error: Please reverify input parameters... So I suspect this will be about builtin vs UNO filters. pgpqMRhuTeTZW.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] -conver-to on master
Hi Miklos, Muthu, *, Am Sonntag, 17. April 2011, 05:21:31 schrieb Muthu Subramanian K: Hi Miklos, (...) ./soffice.bin --nologo --convert-to rtf --outdir /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/out /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/test.rtf and it does the conversion, but it also fires up a window and it does not exit when the conversion finished. I think there is the option -headless missing. That's what is working for me with 3.3.2. Regards, Andreas -- ## Developer LibreOffice ## Freie Office-Suite für Linux, Mac, Windows ## http://LibreOffice.org ## Support the Document Foundation (http://documentfoundation.org) ## Meine Seite: http://www.amantke.de ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] -conver-to on master
On Sun, Apr 17, 2011 at 08:51:31AM +0530, Muthu Subramanian K sumu...@novell.com wrote: hmm...no idea on this one...I haven't touched the code in a long time now... you would want to diff the desktop module and see? As Andreas points out, it seems the problem is that in 3.3 -conver-to implied -headless, in 3.4 it does not. The attached patch fixes the issue for me. Does it look sane? Thanks. From 73290beeff9e0cd4e67065aec6ba869fac2e7605 Mon Sep 17 00:00:00 2001 From: Miklos Vajna vmik...@frugalware.org Date: Sun, 17 Apr 2011 22:01:19 +0200 Subject: [PATCH] Make -conver-to imply -headless --- desktop/source/app/cmdlineargs.cxx |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx index 817a43f..b340d59 100755 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -290,6 +290,8 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier supplier ) bOpenEvent = false; bConversionEvent = true; bConversionParamsEvent = true; +SetBoolParam_Impl( CMD_BOOLPARAM_HEADLESS, sal_True ); +SetBoolParam_Impl( CMD_BOOLPARAM_INVISIBLE, sal_True ); } else if ( oArg.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM(print-to-file))) { -- 1.7.4.4 pgpHcNAgGRTXF.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] -conver-to on master
Hi Miklos, hmm...no idea on this one...I haven't touched the code in a long time now... you would want to diff the desktop module and see? Thanks! Muthu Subramanian On 04/15/2011 04:07 AM, Miklos Vajna wrote: Hi, On -3-3, the following works fine: libreoffice -nologo -convert-to rtf -outdir /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/out /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/test.rtf On master, I tried: ./soffice.bin --nologo --convert-to rtf --outdir /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/out /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/test.rtf and it does the conversion, but it also fires up a window and it does not exit when the conversion finished. Muthu, do you have an idea what went wrong? Thanks. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] -conver-to on master
Hi, On -3-3, the following works fine: libreoffice -nologo -convert-to rtf -outdir /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/out /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/test.rtf On master, I tried: ./soffice.bin --nologo --convert-to rtf --outdir /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/out /home/vmiklos/git/libreoffice/lo-test-files/writer/bug/35985/test.rtf and it does the conversion, but it also fires up a window and it does not exit when the conversion finished. Muthu, do you have an idea what went wrong? Thanks. pgpJPe5REUhq4.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice