Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-07

reference to ~/.config/<appname> documentation

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I have heard that the $HOME/.config/<appname> is now the preferred standard / location for application configuration data. Has anybody get a website reference to that. I tried to look on freedesktop.org but couldn't find anything yet.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
Hi, I have heard that the $HOME/.config/<appname> is now the preferred standard / location for application configuration data. Has anybody get a website reference to that. I tried to look on freedesktop.org but couldn't find anything yet.

No worries.... After putting more effort into my Google search skills, I found what I was looking for... :-)

http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html Details of $XDG_CONFIG_HOME usage.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Ales Katona
Ales Katona wrote
Must be new. My .config has little of the apps I use. Nice idea tho, unclutters the hidden crap :) I think it's not a bad idea. I'll move my stuff to it that's for sure.

We have been using ~/.config/ for a while now. I actually have a few other apps that also use it, but doing a 'ls -lsa' in my home directory shows a LOT of hidden crap!

Note:
The RTL function GetAppConfigDir() also uses $XDG_CONFIG_HOME or .config if not set. A nice move from the FPC team! :) It's long overdue that Linux apps start implementing and using some standards. It makes cross-distro deployment so much easier.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 17 lines
On Tue, Jul 22, 2008 at 1:12 PM, Ales Katona wrote: > Must be new. My .config has little of the apps I use. Nice idea tho, > unclutters the hidden crap :) > > I think it's not a bad idea. I'll move my stuff to it that's for > sure. We have been using ~/.config/ for a while now. I actually have a few other apps that also use it, but doing a 'ls -lsa' in my home directory shows a LOT of hidden crap! Note: The RTL function GetAppConfigDir() also uses $XDG_CONFIG_HOME or .config if not set. A nice move from the FPC team! :) It's long overdue that Linux apps start implementing and using some standards. It makes cross-distro deployment so much easier.

Can you explain, why the XDG_CONFIG_HOME makes cross-distro deployment so much easier?

Lazarus can use the GetAppConfigDir when 2.2.2 is out. Then the IDE should check if there is an old config directory and no new, then ask the user if the old config dir should be moved.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote
Can you explain, why the XDG_CONFIG_HOME makes cross-distro deployment so much easier?

:-) I didn't mean XDG_CONFIG_HOME specifically. I meant having some standards in general, supported by many distros. eg: Inserting items in existing menus, launching user preferred web browser, or user preferred email client etc.. all via the xdg-xxxx calls.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Mattias Gärtner
Mattias G?rtner wrote
I added xdg-open to the lazarus lists of web browsers.

Nice, thanks.

xdg-open is quite handy for many things. It launches the correct application for the job (most of the times).

Example on my system:

xdg-open /home/graemeg --> Nautilus file manager in home directory xdg-open somefile.pdf --> evince pdf viewer
xdg-open http://... --> Firefox web browser

The user can customise what applications xdg-open uses, but I can't remember from memory how that is done.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email