VirtualBox

15 年 前 建立

10 年 前 結束

#5099 closed enhancement (fixed)

Should not use ~/.VirtualBox as a config folder for Linux hosts

回報者: Andres G. Aragoneses 負責人:
元件: other 版本: VirtualBox 3.0.6
關鍵字: xdg 副本:
Guest type: other Host type: Linux

描述 (由 Frank Mehnert 作最後更新)

There's a freedesktop standard that says that you should use a folder underneath ~/.config/, such as ~/.config/VirtualBox.

More and more applications are switching to this methodology to make configuration migrations easier, please do the same.

The exact standard paper is (which tells you to first check the value of the env var $XDG_CONFIG_HOME): http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html

更動歷史 (7)

comment:1 15 年 前Sander van Leeuwen 編輯

類型: defectenhancement

comment:2 15 年 前Technologov 編輯

Added myself as CC on this wish.

-Technologov

comment:3 13 年 前wolfy 編輯

Eh, looks like that this issue will never be fixed

comment:4 12 年 前faispasierch 編輯

  • ping

comment:6 12 年 前eheintzmann 編輯

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:

I think that VirtualBox 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.

comment:7 10 年 前Frank Mehnert 編輯

描述: 修改 (差異)
狀態: newclosed
處理結果: fixed

As of VBox 4.3, the default config directory is ~/.config/VirtualBox if ~/.VirtualBox does not exist. It can be overwritten by setting the XDG_CONFIG_HOME environment variable.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette