Comments (1)
According to XDG Base directory specification:
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).
More details at :
http://ploum.net/post/207-modify-your-application-to-use-xdg-folders
https://live.gnome.org/GnomeGoals/XDGConfigFolders
Full specification can be found at:
http://standards.freedesktop.org/basedir-spec/latest/
The Freedesktop.org XDG base directory specification have good de facto
adoption.
It has been adopted by:
- GNOME ( https://live.gnome.org/GnomeGoals/XDGConfigFolders )
- GTK+ ( https://bugzilla.gnome.org/show_bug.cgi?id=646631 )
- KDE (
http://techbase.kde.org/KDE_System_Administration/XDG_Filesystem_Hierarchy#Freed
esktop.org_and_Standard_Directories )
- QT (
http://harmattan-dev.nokia.com/docs/library/html/qt4/qsettings.html#setPath )
- XFCE ( http://docs.xfce.org/xfce/xfce4-session/advanced in Files and
Environment Variables )
- LXDE
- Razor-qt
- VLC ( https://trac.videolan.org/vlc/ticket/1267 )
- GStreamer ( https://bugzilla.gnome.org/show_bug.cgi?id=518597 )
- Chrome ( http://code.google.com/p/chromium/issues/detail?id=16976 )
- many more upstream applications
- Ubuntu ( http://brainstorm.ubuntu.com/idea/6557/ &
http://packages.ubuntu.com/fr/source/precise/libxdg-basedir )
- Debian ( http://packages.debian.org/squeeze/libxdg-basedir1 )
- Red Hat
- Fedora
- Suse
- many more distributions
I think that stardict should use same locations than the vast majority of
Desktop environment and applications.
There are real advantages of following this specification :
- a lot less cluttered $HOME
- Make backups a lot more safer and easier.
Backuping your $XDG_DATA_HOME along with your files is enough
(or just excluding $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.
Original comment by [email protected]
on 5 Jan 2013 at 1:12
from stardict-3.
Related Issues (20)
- stardict 3.0.4 still can not scan words in win7 64 bit
- Update Russian translation HOT 1
- Move to GitHub HOT 1
- Stardict for iOS
- Opening in MacOSX shows only blocks (no text anywhere) HOT 8
- In offline mode send all data to ditc.cn HOT 1
- error: variable length array of non-POD element type 'std::vector<gchar *>' HOT 1
- Undefined symbols _g_module_close, _g_module_open, _g_module_symbol HOT 1
- Look up differs in pop-up and main windows HOT 1
- Festival plugin missing from Debian package HOT 1
- please try youdao-dict-for-ubuntu HOT 2
- Unicode phonetic symbols not processed
- Error, sametypesequence must be a single lower case letter, preferably 'm' HOT 1
- Hotkey for the translation of the selected words(issue 50 dublicate) HOT 2
- [patch] stardict 3.x is not compatible with zlib 1.2.5.2 and/or higher HOT 1
- 3.0.4 has missing linking to 'gmodule-2.0' for g_module_open HOT 2
- Please create an AppData file for StarDict HOT 2
- Fwd: [abrt] stardict: g_realloc(): stardict killed by SIGTRAP
- scan breaks selection on apostrophe HOT 3
- No uninstall for OsX HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stardict-3.