Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Willy Raets
On di, 2012-03-06 at 22:16 +0200, Jussi Lahtinen wrote: > Even better! > > Shell "xdg-user-dir DESKTOP" To sPathOfDesktop Jackpot :-) Wonder on how many distros it will run? A matter of testing I guess. Thanks a lot Jussi, Really helpful Willy --

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Willy Raets
On di, 2012-03-06 at 20:18 +, Sebi wrote: > Maybe you can use this [0], from the gb.desktop component. I'm not sure if > it works with other desktop directories as you need. > > [0] http://gambasdoc.org/help/comp/gb.desktop/desktop/path?v3 Seems like a great option for Gambas3, but doesn't

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Sebi
t for gambas users Reply-To: mailing list for gambas users Subject: Re: [Gambas-user] Probem analysing Desktop path In Ubuntu desktop path is in ~/.config/user-dirs.dirs Jussi On Tue, Mar 6, 2012 at 21:51, Willy Raets wrote: > On di, 2012-03-06 at 20:34 +0100, Matti wrote: > > Will

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Jussi Lahtinen
Even better! Shell "xdg-user-dir DESKTOP" To sPathOfDesktop Maybe Benoit could add this natively to User class? Jussi On Tue, Mar 6, 2012 at 21:55, Jussi Lahtinen wrote: > In Ubuntu desktop path is in ~/.config/user-dirs.dirs > > Jussi > > > > > > On Tue, Mar 6, 2012 at 21:51, Willy Raets

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Jussi Lahtinen
In Ubuntu desktop path is in ~/.config/user-dirs.dirs Jussi On Tue, Mar 6, 2012 at 21:51, Willy Raets wrote: > On di, 2012-03-06 at 20:34 +0100, Matti wrote: > > Willy, > > > > The easiest solution to store some infos would be to use gb.settings. > > Then you don't have to care about directo

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Willy Raets
On di, 2012-03-06 at 20:34 +0100, Matti wrote: > Willy, > > The easiest solution to store some infos would be to use gb.settings. > Then you don't have to care about directories at all, gambas does it for you, > and you can read/write the infos very easily. > See http://gambasdoc.org/help/comp/gb

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Matti
Willy, The easiest solution to store some infos would be to use gb.settings. Then you don't have to care about directories at all, gambas does it for you, and you can read/write the infos very easily. See http://gambasdoc.org/help/comp/gb.settings But I don't know what you store in your SystemInf

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Willy Raets
Rolf, On my system I installed English OS with Dutch language. No problem "~/Desktop" is there. On a system of a friend of mine he installed Dutch OS with Dutch language. And that seems to be the difference. The is NO "~/Desktop", instead ls at command returns "~/Bureaublad" (Dutch for desktop)

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Rolf-Werner Eilert
Willy - are you really sure the path name is translated, not only its caption within the GUI? I think you don't need to worry... On my German system, it would be "Arbeitsfläche", and there is still a ~/Desktop (with k). Rolf Am 06.03.2012 15:48, schrieb Willy Raets: > Hi all, > > I'm have th

Re: [Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Rolf Schmidt
Hi Willy > If Exist(Use.Home& "/Desktop) then > sPath = User.Home& "/Desktop/SystemInfo.txt" > Endif > > Now it turns out that this only works on systems with English language. > Other systems translate "Desktop" into local language!! > Like for Dutch it will be "Bureaublad" instead of "Desk

[Gambas-user] Probem analysing Desktop path

2012-03-06 Thread Willy Raets
Hi all, I'm have this in my code: If Exist(Use.Home & "/Desktop) then sPath = User.Home & "/Desktop/SystemInfo.txt" Endif Now it turns out that this only works on systems with English language. Other systems translate "Desktop" into local language!! Like for Dutch it will be "Bureaublad" inst