This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:fedora_tips [2017/11/07 12:32] – jansen | linux:fedora_tips [2020/10/06 10:56] – [Cache directory ; XDG basedir standards] jansen | ||
---|---|---|---|
Line 41: | Line 41: | ||
===== Performance issues ===== | ===== Performance issues ===== | ||
---- | ---- | ||
- | Some applications are clearly designed for use by a single user on a single system, and some of this doesn' | + | Some applications are clearly designed for use by a single user on a single system, and some of this doesn' |
===== Firefox, Chrome and other disk hogs ===== | ===== Firefox, Chrome and other disk hogs ===== | ||
Line 66: | Line 66: | ||
You can also check, if earlier versions of Gimp left behind their directories, | You can also check, if earlier versions of Gimp left behind their directories, | ||
- | ===== XDG basedir standards ===== | + | ===== Cache directory ; XDG basedir standards ===== |
---- | ---- | ||
- | A lot of programs are using the (relatively new) freedesktop | + | A lot of programs are using the Freedesktop |
- | However, the data and cache parts can become quite big, causing two problems: quota usage on the home disk, and performance loss (since the home disk is remote, and this can cause lots of read and write access). | + | However, the data and cache parts can become quite big, causing two problems: |
- | Now the XDG standard provides a mechanism to move those files to another location, and we suggest users move them to one of their local data disks. We also provide a script that takes care of the environment setup, but selecting a location and moving the files is something you have to do yourself. | + | Now the XDG standard provides a mechanism to move those files to another location, and we suggest users move them to one of their local data disks. We also provide a script |
- | Follow these steps to get started: | + | |
+ | A quick solution (shown here just for the cache), is to move the cache to a data disk and link to that location: | ||
+ | |||
+ | mv ~/.cache / | ||
+ | ln -s / | ||
+ | |||
+ | a more complete setup works like this: | ||
- close programs that may have files open in the XDG directories. This is especially important for Evolution (mail client). | - close programs that may have files open in the XDG directories. This is especially important for Evolution (mail client). | ||
- | - Run ' | + | - Run '[[sfinx-xdg]]' with the path where you want to store the files. Default is / |
- If the specified directory doesn' | - If the specified directory doesn' | ||
- | - Set the environment in your current shell, and move the existing files to their new locations: | + | - If your setup includes moveing application data, set the environment in your current shell, and move the existing files to their new locations |
- | eval `sfinx-xdg` | + | |
- | mv ~/.cache/* $XDG_CACHE_HOME/ | + | eval `sfinx-xdg` |
mv ~/ | mv ~/ | ||
+ | |||
- Log out, and on your next login, all programs should find their data and cache in the new location. | - Log out, and on your next login, all programs should find their data and cache in the new location. | ||
- Witness the increase in performance, | - Witness the increase in performance, | ||
Line 108: | Line 115: | ||
See also [[modify desktop session]] | See also [[modify desktop session]] | ||
+ | |||
+ | ===== Evolution ===== | ||
+ | Evolution is a mail/ | ||
+ | |||
+ | systemctl --user daemon-reload | ||
+ | systemctl --user disable --now evolution-source-registry | ||
+ | systemctl --user disable --now evolution-calendar-factory | ||
+ | systemctl --user disable --now evolution-addressbook-factory | ||
+ | |||
+ |