Welcome
Welcome to amule

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

support the Freedesktop.org XDG Base Directory Specification

Post your Bugs here

 

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby StuRedman » Sat Dec 01, 2012 4:29 pm

No.
User avatar
StuRedman
Site Admin
 
Posts: 381
Joined: Sun Jan 22, 2012 10:58 pm

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby eheintzmann » Mon Dec 03, 2012 6:07 pm

Why not?
eheintzmann
 
Posts: 12
Joined: Fri Nov 30, 2012 9:32 pm

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby StuRedman » Tue Dec 11, 2012 11:50 pm

Because 3 links without text is not a feature request I bother to consider.
User avatar
StuRedman
Site Admin
 
Posts: 381
Joined: Sun Jan 22, 2012 10:58 pm

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby eheintzmann » Sat Dec 15, 2012 2:47 pm

aMule should not have its own folder (.aMule) anymore.
User data should go into $XDG_DATA_HOME (which default to .local/share), user preferences should go into $XDG_CONFIG_HOME (which default to .config) and cached data should go to $XDG_CACHE_HOME (which default to .cache).

Thre are advantages of following this specification :

- a lot less cluttered $HOME
- Make backups a lot more safer and easier. (you know that backuping your $XDG_DATA_HOME along with your files is enough or excludind $XDG_CACHE_HOME)
- A lot easier to reset a default configuration if you want/need it (and without any risk to loose informations). Even for the software itself could choose to reset $XDG_CONFIG_HOME if needed.
- Avoid some strange bugs that happens because you had a old version of some configuration file
- A lot more of flexibility and portability because no path are hardcoded.
eheintzmann
 
Posts: 12
Joined: Fri Nov 30, 2012 9:32 pm

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby eheintzmann » Sat Dec 15, 2012 2:56 pm

I suggest to move:
- .aMule/Incoming to XDG_DOWNLOAD_DIR
- .aMule/Temp to XDG_DOWNLOAD_DIR/aMule/Temp or $XDG_DATA_HOME/aMule/Temp
- .aMule/*.conf, .aMule/*.conf.bak to $XDG_CONFIG_HOME/aMule
- .aMule/*.dat to XDG_DOWNLOAD_DIR/aMule
eheintzmann
 
Posts: 12
Joined: Fri Nov 30, 2012 9:32 pm

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby eheintzmann » Sat Dec 15, 2012 3:20 pm

- .aMule/*.dat to XDG_DATA_DIR/aMule (sorry for the typo)
- .aMule/*.met and .aMule/*.met.bak should go to $XDG_DATA_DIR/aMule
- log files should be handled by syslog/systemd

The spec can be found here:
http://standards.freedesktop.org/basedir-spec/latest/
eheintzmann
 
Posts: 12
Joined: Fri Nov 30, 2012 9:32 pm

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby StuRedman » Sat Dec 15, 2012 3:28 pm

Who says this is a standard? A "website" that resolves to a directory listing, lol.

You can freely relocate Incoming and Temp. And you can either symlink .amule to whereever you want or just run aMule from your config dir wherever you want it to be.
User avatar
StuRedman
Site Admin
 
Posts: 381
Joined: Sun Jan 22, 2012 10:58 pm

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby eheintzmann » Sun Dec 16, 2012 8:04 am

>Who says this is a standard?
The XDG base directory specification that have good de facto adoption.
It has been adopted by
- GNOME (see https://live.gnome.org/GnomeGoals/XDGConfigFolders)
- KDE (see http://techbase.kde.org/KDE_System_Admi ... _Hierarchy)
- XFCE (see http://docs.xfce.org/xfce/xfce4-session/advanced in Files and Environment Variables)
-LXDE
- Ubuntu (see http://brainstorm.ubuntu.com/idea/6557/ )
- Debian
- Fedora
- Suse
- many other distributions
- many other upstream apps

I think that aMule should use same locations than the vast majority of Desktop environment.

> A "website" that resolves to a directory listing, lol.
If you are curious about Freedesktop.org, Iquote wikipedia page (http://en.wikipedia.org/wiki/Freedesktop.org):
"freedesktop.org (fd.o) is a project to work on interoperability and shared base technology for free software desktop environments for the X Window System (X11) on Linux and other Unix-like operating systems.[...]
Widely used free software X desktop projects such as GNOME, KDE and Xfce are collaborating with the freedesktop.org project"

The main Freedesktop.org page can be found at http://www.freedesktop.org/wiki/
A list of Freedesktop.org specifications can be seen at http://www.freedesktop.org/wiki/Specifications
A list of Freedesktop.org applications can be found at http://www.freedesktop.org/wiki/Software (including Avahi, cairo, D-BUS, DRI, GStreamer, Mesa, Plymouth, PolicyKit, poppler, Xorg and many other apps...)

>You can freely relocate Incoming and Temp. And you can either symlink
> .amule to whereever you want or just run aMule from your config dir
> wherever you want it to be.
Well, this not a feature request about my personnal settings, but about default settings.
eheintzmann
 
Posts: 12
Joined: Fri Nov 30, 2012 9:32 pm

Re: support the Freedesktop.org XDG Base Directory Specifica

Postby GonoszTopi » Thu Jan 24, 2013 6:50 pm

Might be accomplished some time in the future. (Take this with no deadline set!)
concordia cum veritate
User avatar
GonoszTopi
VIP Member
 
Posts: 74
Joined: Sat Sep 15, 2012 8:09 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests