List Info

Thread: location of conf files redux




location of conf files redux
user name
2007-12-11 07:07:09
I've brought this up before on Windows.  This morning a user brought it up regarding Macs:

[07:37:06]&nbsp;<nicoduck>&nbsp;i have a&nbsp;question: why does not&nbsp;psi&nbsp;store&nbsp;the app data (under mac os&nbsp;x) ;in the normal ~/Library/Application_Support folder?
[07:59:27]&nbsp;<halr9000>&nbsp;is that the &quot;correct&quot; place to do&nbsp;so?
[07:59:49]&nbsp;<halr9000>&nbsp;the&nbsp;short&nbsp;answer&nbsp;is ;that I believe the devs wanted a&nbsp;consistent location across ;the 3 platforms we support
[08:00:09] <halr9000> but it's ;always&nbsp;bugged&nbsp;me that on Windows psidata is not stored in&nbsp;~/Application ;Data
[08:01:00]&nbsp;<halr9000>&nbsp;I'm&nbsp;not&nbsp;a Mac user, nor&nbsp;a ;dev (I'm&nbsp;the webmaster), so&nbsp;I can't&nbsp;say ;with authority&nbsp;what&nbsp;is or what should be&nbsp;done
[08:01:16] <halr9000> but&nbsp;if ;other ;apps store data in ~/Library/Application_Support on a&nbsp;mac--I&nbsp;agree&nbsp;with&nbsp;you
[08:03:46]&nbsp;<nicoduck>&nbsp;jep
[08:03:48]&nbsp;<nicoduck>&nbsp;they ;do so
[08:04:10] <;nicoduck&gt; it&nbsp;is&nbsp;the compliant&nbsp;to ;the ~/Application Data on&nbsp;windows
[08:04:33] <nicoduck>; and&nbsp;i'm not&nbsp;very&nbsp;happy&nbsp;about&nbsp;it,&nbsp;because&nbsp;i realized&nbsp;it AFTER i reinstalled&nbsp;my mac
[08:04:53] &lt;nicoduck> and lost all&nbsp;logs,&nbsp;since&nbsp;thy&nbsp;are ;stored&nbsp;in a different directory



--
Blog: http://halr9000.com
Webmaster, Psi ( http://psi-im.org)
Co-host, PowerScripting Podcast (http://powerscripting.net)
Re: location of conf files redux
user name
2007-12-11 08:51:27
+1 for storing files in a platform specific way,

~/.psi (on linux)
~/Library/Application_Support/Psi (on mac)
%APPDATA%Psi (on windows)

On Dec 11, 2007 3:07 PM, Hal Rottenberg < halhalr9000.com">halhalr9000.com> wrote:
I've brought this up before on Windows.&nbsp; This morning a user brought it up regarding Macs:

[07:37:06]&nbsp;<nicoduck>&nbsp;i ;have a question: why does not psi&nbsp;store&nbsp;the&nbsp;app data (under mac os x)&nbsp;in the normal ~/Library/Application_Support ;folder?
[07:59:27]&nbsp;<halr9000>&nbsp;is&nbsp;that ;the &quot;correct"&nbsp;place&nbsp;to do so?
[07:59:49] <halr9000>; the&nbsp;short&nbsp;answer is&nbsp;that&nbsp;I believe the devs wanted a&nbsp;consistent location&nbsp;across&nbsp;the ;3 platforms ;we support
[08:00:09]&nbsp;<halr9000>&nbsp;but it's&nbsp;always&nbsp;bugged&nbsp;me&nbsp;that ;on Windows psidata&nbsp;is not stored in ~/Application&nbsp;Data
[08:01:00]&nbsp;<halr9000>&nbsp;I'm not&nbsp;a Mac user, nor a&nbsp;dev ;(I'm&nbsp;the&nbsp;webmaster), so&nbsp;I ;can't&nbsp;say&nbsp;with&nbsp;authority what&nbsp;is&nbsp;or what should be done
[08:01:16] <;halr9000&gt; but if&nbsp;other&nbsp;apps&nbsp;store&nbsp;data ;in ~/Library/Application_Support on a&nbsp;mac--I&nbsp;agree&nbsp;with&nbsp;you
[08:03:46]&nbsp;<nicoduck>&nbsp;jep
[08:03:48]&nbsp;<nicoduck>&nbsp;they&nbsp;do so
[08:04:10] &lt;nicoduck> it is&nbsp;the&nbsp;compliant to&nbsp;the ;~/Application Data on&nbsp;windows
[08:04:33] &lt;nicoduck&gt; and i9;m not very happy about it,&nbsp;because i&nbsp;realized&nbsp;it&nbsp;AFTER&nbsp;i reinstalled&nbsp;my ;mac
[08:04:53] ;<nicoduck> ;and lost all logs, since thy&nbsp;are&nbsp;stored&nbsp;in ;a different ;directory



--
Blog: http://halr9000.com
Webmaster, Psi ( http://psi-im.org)
Co-host, PowerScripting Podcast (http://powerscripting.net)

_______________________________________________
Psi-Devel mailing list
Psi-Devellists.affinix.com">Psi-Devellists.affinix.com
http://lists.affinix.com/listinfo.cgi/psi-devel-affinix.com




--
- Norman Rasmussen
- Email: normanrasmussen.co.za">normanrasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
Re: location of conf files redux
user name
2007-12-11 09:29:47
There's already a flyspray task for this, and a reason why
we don't
have this yet: we need to migrate the old configuration to
the new
dir, which is the hard part. There are 2 ways to do this:
- On OS X: move the old dir to the new dir (if the new dir
doesn't
exist), and link the old dir to the new dir.
- On Windows: do a recursive copy of the old dir if the new
dir
doesn't exist yet, and leave behind a
"DO_NOT_EDIT_THIS_DIR_AS_IT_HAS_BEEN_MIGRATED_ELSEWHERE
"  file (it
sounds evil to delete the dir, and we need to make sure that
the user
doesn't accidentally edit his own dir)

I'm fine with using the latter solution on mac os x as well,
although
it is slightly less clean.

Now all we need is someone to implement this properly.

cheers,
Remko

PS: It's "Application Support". Mac OS X can
handle spaces in
filenames just fine 
_______________________________________________
Psi-Devel mailing list
Psi-Devellists.affinix.com
http://lists.affinix.com/listinfo.cgi/psi-devel-affin
ix.com

Re: location of conf files redux
user name
2007-12-11 11:27:38
And we can still use PSIDATA env var for stuff because that would point to whatever the current case is for that platform and that user.

On Dec 11, 2007 9:51 AM, Norman Rasmussen < normanrasmussen.co.za"> normanrasmussen.co.za> wrote:
+1 for storing files in a platform specific way,

~/.psi (on linux)
~/Library/Application_Support/Psi (on mac)
%APPDATA%Psi (on windows)

On Dec 11, 2007 3:07 PM, Hal Rottenberg < halhalr9000.com" target="_blank">halhalr9000.com> wrote:
I've brought this up before on Windows.&nbsp; This morning a user brought it up regarding Macs:

[07:37:06]&nbsp;<nicoduck>&nbsp;i ;have a question: why does not psi&nbsp;store&nbsp;the&nbsp;app data (under mac os x)&nbsp;in the normal ~/Library/Application_Support ;folder?
[07:59:27]&nbsp;<halr9000>&nbsp;is&nbsp;that ;the &quot;correct"&nbsp;place&nbsp;to do so?
[07:59:49] <halr9000>; the&nbsp;short&nbsp;answer is&nbsp;that&nbsp;I believe the devs wanted a&nbsp;consistent location&nbsp;across&nbsp;the ;3 platforms ;we support
[08:00:09]&nbsp;<halr9000>&nbsp;but it's&nbsp;always&nbsp;bugged&nbsp;me&nbsp;that ;on Windows psidata&nbsp;is not stored in ~/Application&nbsp;Data
[08:01:00]&nbsp;<halr9000>&nbsp;I'm not&nbsp;a Mac user, nor a&nbsp;dev ;(I'm&nbsp;the&nbsp;webmaster), so&nbsp;I ;can't&nbsp;say&nbsp;with&nbsp;authority what&nbsp;is&nbsp;or what should be done
[08:01:16] <;halr9000&gt; but if&nbsp;other&nbsp;apps&nbsp;store&nbsp;data ;in ~/Library/Application_Support on a&nbsp;mac--I&nbsp;agree&nbsp;with&nbsp;you
[08:03:46]&nbsp;<nicoduck>&nbsp;jep
[08:03:48]&nbsp;<nicoduck>&nbsp;they&nbsp;do so
[08:04:10] &lt;nicoduck> it is&nbsp;the&nbsp;compliant to&nbsp;the ;~/Application Data on&nbsp;windows
[08:04:33] &lt;nicoduck&gt; and i9;m not very happy about it,&nbsp;because i&nbsp;realized&nbsp;it&nbsp;AFTER&nbsp;i reinstalled&nbsp;my ;mac
[08:04:53] ;<nicoduck> ;and lost all logs, since thy&nbsp;are&nbsp;stored&nbsp;in ;a different ;directory



--
Blog: http://halr9000.com
Webmaster, Psi ( http://psi-im.org)
Co-host, PowerScripting Podcast (http://powerscripting.net)

_______________________________________________
Psi-Devel mailing list
Psi-Devellists.affinix.com" target="_blank">Psi-Devellists.affinix.com
http://lists.affinix.com/listinfo.cgi/psi-devel-affinix.com




--
- Norman Rasmussen
- Email: normanrasmussen.co.za" target="_blank">normanrasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
_______________________________________________
Psi-Devel mailing list
Psi-Devellists.affinix.com">Psi-Devellists.affinix.com
http://lists.affinix.com/listinfo.cgi/psi-devel-affinix.com




--
Blog: http://halr9000.com
Webmaster, Psi ( http://psi-im.org)
Co-host, PowerScripting Podcast (http://powerscripting.net)
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )