aMule Forum

English => Feature requests => Topic started by: Fabioamd87 on July 26, 2010, 05:02:33 PM

Title: use xdg standard
Post by: Fabioamd87 on July 26, 2010, 05:02:33 PM
what about store .aMule config folder in .config?
Title: Re: use xdg standard
Post by: GonoszTopi on July 27, 2010, 01:36:19 AM
Convince wxWidgets developers that it's a good idea to return ~/.config/appname from wxStandardPaths::GetUserDataDir().
Title: Re: use xdg standard
Post by: Fabioamd87 on August 21, 2010, 07:28:04 PM
tell me if is ok: http://wxforum.shadonet.com/viewtopic.php?p=123020#123020
Title: Re: use xdg standard
Post by: Stu Redman on August 21, 2010, 10:22:36 PM
I think that board is about coding with wx, not coding wx itself. Wx take all change requests only through their bugtracker afaik, which is a nuisance.  :(
Title: Re: use xdg standard
Post by: Fabioamd87 on August 22, 2010, 11:29:04 AM
you think is possible to obtain that change?
Title: Re: use xdg standard
Post by: Stu Redman on August 22, 2010, 04:17:23 PM
I'm doubtful.  :-\
Title: Re: use xdg standard
Post by: GonoszTopi on August 23, 2010, 11:48:30 PM
you think is possible to obtain that change?
Just think of backwards compatibility. It's rather annoying if a program suddenly starts to look for its config in a completely different place, without a word.
Title: Re: use xdg standard
Post by: Fabioamd87 on September 01, 2010, 01:24:30 PM
yes, but no change no progress.
Title: Re: use xdg standard
Post by: Vollstrecker on September 01, 2010, 02:35:51 PM
We could let it look at the old place, and if it finds it, move it to the new location. And most important: Tell the user that we did.
Title: Re: use xdg standard
Post by: GonoszTopi on September 01, 2010, 04:23:39 PM
We could let it look at the old place, and if it finds it, move it to the new location. And most important: Tell the user that we did.
Sure we could. Right now we use wxStandardPaths::GetUserDataDir() (http://docs.wxwidgets.org/stable/wx_wxstandardpaths.html#wxstandardpathsgetuserdatadir) to find out the location to store everything.

From our side, we'll have to decide for each file we currently store in ~/.aMule whether it's a "user specific configuration file" or not, and in the latter case store them elsewhere. And this decision is not always easy. For example, should preferences.dat be considered a config file or not?
Title: Re: use xdg standard
Post by: Fabioamd87 on September 01, 2010, 10:11:12 PM
imho we should just move the whole folder aMule into .config, because for example if we move .part file in .cache file, it can be considered deletable, but it isn't.
Title: Re: use xdg standard
Post by: Vollstrecker on September 01, 2010, 11:00:05 PM
The only problem I see, or better the only decision I would make, is where to place the temp and incoming dirs. Everything else can be considerred as config file.
Title: Re: use xdg standard
Post by: franz1789 on September 02, 2010, 08:34:52 PM
I sincerely can't see the point in this feature..
Title: Re: use xdg standard
Post by: lfroen on September 03, 2010, 10:18:30 AM
The only problem I see, or better the only decision I would make, is where to place the temp and incoming dirs.
Groundbreaking news: files (or directories) starting with "." are considered "hidden" on *nix systems; user is not expected to look there. So, placing "Incoming" into ".aMule" is wrong and violates every HIG in existence.

But, oh, I forgot ... aMule don't care about stinky HIG
Title: Re: use xdg standard
Post by: Vollstrecker on September 03, 2010, 02:34:57 PM
The only problem I see, or better the only decision I would make, is where to place the temp and incoming dirs.
Groundbreaking news: files (or directories) starting with "." are considered "hidden" on *nix systems; user is not expected to look there. So, placing "Incoming" into ".aMule" is wrong and violates every HIG in existence.
So no news.
But, oh, I forgot ... aMule don't care about stinky HIG
So no decision to make. Let's make the changes to satisfy a standard we don't really care about. Let's change a running system, let's fix what's not broken.

But seriously, it can be done (technically), but would it change something? Where's almost in line with LSB, and we're almost in line with POSIX, xdg is maybe a benefit for apps that are designed from start, and maybe a benefit for apps that need or want to share their config with other apps for a reason I can't imagine. And IMHO we can benefit from some tools and technics xdg provides, and I still wait for 3.0 to start implementing some of these I think of they would be a benefit, but implementing this wouldn't change anything.

All apps that need to use the configs, are part of our source. All apps that want to use our configs, have to use them where we place them. Not talking about cas or plasmamule (maybe fileinfo, too), that don't use the headers that implement the filepath saerching and would need to be adjusted additionally.
Title: Re: use xdg standard
Post by: Stu Redman on September 03, 2010, 03:40:29 PM
We could let it look at the old place, and if it finds it, move it to the new location. And most important: Tell the user that we did.
Yeah. And what if there is data in both places? And what if the user tries the new version (which moves the data), dislikes the new gui and rolls back to the old version? And who will answer the zillion new help threads about that?

So, placing "Incoming" into ".aMule" is wrong and violates every HIG in existence.
Funny, you never seemed to care while you were a dev.

I sincerely can't see the point in this feature..
This sums it up pretty well.
Title: Re: use xdg standard
Post by: lfroen on September 04, 2010, 08:15:22 PM
So, placing "Incoming" into ".aMule" is wrong and violates every HIG in existence.

Funny, you never seemed to care while you were a dev.
Everyone and his priorities, shell we?

aMule GUI and overall "user experience" is awful, but since I used daemon and can use shell, I didn't care then and don't care now. So, it's only "FYI".
Title: Re: use xdg standard
Post by: Fabioamd87 on October 28, 2010, 12:15:16 PM
please save amule config in .config.
Title: Re: use xdg standard
Post by: Kry on October 28, 2010, 06:09:48 PM
Oh well, now that you said please we'll surely do it.
Title: Re: use xdg standard
Post by: Stu Redman on October 28, 2010, 08:49:31 PM
You'd even give him your clothes, your boots and your motorcycle, huh?
Title: Re: use xdg standard
Post by: Kry on October 28, 2010, 09:07:46 PM
I may even throw in a bottle of wine.