aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: use xdg standard  (Read 13434 times)

Fabioamd87

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 78
use xdg standard
« on: July 26, 2010, 05:02:33 PM »

what about store .aMule config folder in .config?
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: use xdg standard
« Reply #1 on: July 27, 2010, 01:36:19 AM »

Convince wxWidgets developers that it's a good idea to return ~/.config/appname from wxStandardPaths::GetUserDataDir().
Logged
concordia cum veritate

Fabioamd87

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 78
Re: use xdg standard
« Reply #2 on: August 21, 2010, 07:28:04 PM »

Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: use xdg standard
« Reply #3 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.  :(
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Fabioamd87

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 78
Re: use xdg standard
« Reply #4 on: August 22, 2010, 11:29:04 AM »

you think is possible to obtain that change?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: use xdg standard
« Reply #5 on: August 22, 2010, 04:17:23 PM »

I'm doubtful.  :-\
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: use xdg standard
« Reply #6 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.
Logged
concordia cum veritate

Fabioamd87

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 78
Re: use xdg standard
« Reply #7 on: September 01, 2010, 01:24:30 PM »

yes, but no change no progress.
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: use xdg standard
« Reply #8 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.
Logged
Homefucking is killing prostitution

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: use xdg standard
« Reply #9 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() 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?
Logged
concordia cum veritate

Fabioamd87

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 78
Re: use xdg standard
« Reply #10 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.
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: use xdg standard
« Reply #11 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.
Logged
Homefucking is killing prostitution

franz1789

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 133
    • Franz's blog
Re: use xdg standard
« Reply #12 on: September 02, 2010, 08:34:52 PM »

I sincerely can't see the point in this feature..

lfroen

  • Guest
Re: use xdg standard
« Reply #13 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
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: use xdg standard
« Reply #14 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.
Logged
Homefucking is killing prostitution
Pages: [1] 2