Re: [Lazarus] OpenDocument and Linux Mint

2014-04-25 Thread Mark Morgan Lloyd
zeljko wrote: My proposal for fallback will be check for current desktop env and then call appropriate application (only if xdg-open fails). Since most desktop environments at least pay lipservice to the xdg interface utilities, I'm not sure whether having an automatic fallback is advisable

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-25 Thread Mattias Gaertner
On Fri, 25 Apr 2014 16:35:38 +0100 Lukasz Sokol wrote: >[...] > what if the function checked some result code from the external program, > and tried another possibility [maybe from a configurable list?] if not > getting what it expects? How do you want to test if a program starts a gui program i

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-25 Thread Lukasz Sokol
On 25/04/14 16:08, silvioprog wrote: > 2014-04-25 3:23 GMT-03:00 zeljko >: > [...] > > But not so good. Maybe you have kde and gnome and you are currently > using gnome desktop. Calling kfclient can be pita in this case since > kde isn't loaded so kfmclient will load b

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-25 Thread silvioprog
2014-04-25 3:23 GMT-03:00 zeljko : > On 04/25/2014 07:21 AM, silvioprog wrote: > >> 2014-04-17 14:50 GMT-03:00 Mattias Gaertner > >: >> >> >> On Thu, 17 Apr 2014 14:35:07 -0300 >> silvioprog mailto:silviop...@gmail.com>> >> wrote: >> >> > 2014-04-16 2

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-24 Thread zeljko
On 04/25/2014 07:21 AM, silvioprog wrote: 2014-04-17 14:50 GMT-03:00 Mattias Gaertner mailto:nc-gaert...@netcologne.de>>: On Thu, 17 Apr 2014 14:35:07 -0300 silvioprog mailto:silviop...@gmail.com>> wrote: > 2014-04-16 22:07 GMT-03:00 waldo kitty mailto:wkitt...@windstream.net>>:

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-24 Thread silvioprog
2014-04-17 14:50 GMT-03:00 Mattias Gaertner : > On Thu, 17 Apr 2014 14:35:07 -0300 > silvioprog wrote: > > > 2014-04-16 22:07 GMT-03:00 waldo kitty : > > [...] > > > > > and you don't get any kind of exception or other error results?? > > > > > > > No error occurs, and it doesn't opens file. :/ >

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-17 Thread Mattias Gaertner
On Thu, 17 Apr 2014 14:35:07 -0300 silvioprog wrote: > 2014-04-16 22:07 GMT-03:00 waldo kitty : > [...] > > > and you don't get any kind of exception or other error results?? > > > > No error occurs, and it doesn't opens file. :/ > > I'm trying to debug LCL in trying to figure out the problem

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-17 Thread silvioprog
2014-04-17 5:33 GMT-03:00 Lukasz Sokol : [...] > May it be that there is no 'default text editor' set in your Mint OS? (I > don't have one, just guessing). > I'm using Mint with MATE, so Pluma is the default text editor. ( http://en.wikipedia.org/wiki/MATE_(software)) > What happens if you just

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-17 Thread silvioprog
2014-04-16 22:07 GMT-03:00 waldo kitty : [...] > and you don't get any kind of exception or other error results?? > No error occurs, and it doesn't opens file. :/ I'm trying to debug LCL in trying to figure out the problem ... -- Silvio Clécio My public projects - github.com/silvioprog --

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-17 Thread Lukasz Sokol
Hi, unless you really have a good reason, can you avoid replying on top of previous replies ? It's not a corporate environment here, you know. On 17/04/14 02:56, Lazarus Linux wrote: > Here the example indicated works perfect. > > Ubuntu 14.04 - Lazarus 1.3 trunk - fpc 2.6.2 > > May it be

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread Lazarus Linux
Here the example indicated works perfect. Ubuntu 14.04 - Lazarus 1.3 trunk - fpc 2.6.2 2014-04-17 1:07 GMT+00:00 waldo kitty : > On 4/16/2014 3:39 PM, silvioprog wrote: > >> 2014-04-16 16:34 GMT-03:00 waldo kitty > >: >> [...] >> >> what is the error? you hav

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread waldo kitty
On 4/16/2014 3:39 PM, silvioprog wrote: 2014-04-16 16:34 GMT-03:00 waldo kitty mailto:wkitt...@windstream.net>>: [...] what is the error? you haven't told us that piece of important information ;) Oops, sorry! XD The file doesn't open. I click the button and nothing happens. and you do

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread silvioprog
2014-04-16 16:09 GMT-03:00 Junior : > What is the error? > The file doesn't open. I click the button and nothing happens. -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org htt

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread silvioprog
2014-04-16 16:34 GMT-03:00 waldo kitty : [...] > what is the error? you haven't told us that piece of important information > ;) Oops, sorry! XD The file doesn't open. I click the button and nothing happens. -- Silvio Clécio My public projects - github.com/silvioprog -- ___

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread waldo kitty
On 4/16/2014 2:32 PM, silvioprog wrote: 2014-04-16 15:30 GMT-03:00 Junior : OpenDocument('./test.txt'); Same error. what is the error? you haven't told us that piece of important information ;) -- NOTE: No off-list assistance is given without prior approval. Please keep mailing li

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread Junior
What is the error? Em 16-04-2014 15:32, silvioprog escreveu: 2014-04-16 15:30 GMT-03:00 Junior >: OpenDocument('./test.txt'); Same error. -- Silvio Clécio My public projects - github.com/silvioprog -- ___

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread silvioprog
2014-04-16 15:30 GMT-03:00 Junior : > OpenDocument('./test.txt'); > Same error. -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/l

Re: [Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread Junior
OpenDocument('./test.txt'); Em 16-04-2014 15:18, silvioprog escreveu: Hello, I'm trying to open a TXT file in my app, but it does not works. The test is very simple: uses LCLIntf; procedure TForm1.Button1Click(Sender: TObject); begin OpenDocument('test.txt'); end; My environment is: La

[Lazarus] OpenDocument and Linux Mint

2014-04-16 Thread silvioprog
Hello, I'm trying to open a TXT file in my app, but it does not works. The test is very simple: uses LCLIntf; procedure TForm1.Button1Click(Sender: TObject); begin OpenDocument('test.txt'); end; My environment is: Lazarus 1.0.14 rUnknown FPC 2.6.2 x86_64-linux-gtk 2 (Linux Mint Mate 16 -