0x4E4F, I never share screenshots, my desktop is boring… practical, nothing really fancy.
UserMeNever, XDG Base Directory Specification is not new. come on!
brian, What does this mean though? Sure it’s not new, but does it make it less of a mess?
Confetti_Camouflage, The XDG Base Directory Specification is a set of guidelines to tell application developers where they should store their application’s config files, cache, etc.
There are many applications that don’t follow the guidelines and put their files in a hidden folder directly in your home directory, which is what the guidelines are trying to combat.
miss_brainfart, Sometimes that folder isn’t even hidden, either
cyanarchy, Really just disrespectful on the developer’s part.
user224, Fine, it’s 23:46. You got me to check my PC. Let’s have a look.
:::spoiler ls -A ~/
<span style="color:#323232;">2FAlist.txt </span><span style="color:#323232;">Applications </span><span style="color:#323232;">aurpkt </span><span style="color:#323232;">.bash_history </span><span style="color:#323232;">.bash_logout </span><span style="color:#323232;">.bash_profile </span><span style="color:#323232;">.bashrc </span><span style="color:#323232;">.cache </span><span style="color:#323232;">.cddb </span><span style="color:#323232;">.cert </span><span style="color:#323232;">Cisco Packet Tracer 8.2.1 </span><span style="color:#323232;">.cmake </span><span style="color:#323232;">.config </span><span style="color:#323232;">.cups </span><span style="color:#323232;">Desktop </span><span style="color:#323232;">.dir_colors </span><span style="color:#323232;">Documents </span><span style="color:#323232;">.dosbox </span><span style="color:#323232;">Downloads </span><span style="color:#323232;">dump1090 </span><span style="color:#323232;">.dvdcss </span><span style="color:#323232;">.elinks </span><span style="color:#323232;">.face </span><span style="color:#323232;">.face.icon </span><span style="color:#323232;">.fltk </span><span style="color:#323232;">.fonts.conf </span><span style="color:#323232;">.gnupg </span><span style="color:#323232;">.gnuradio </span><span style="color:#323232;">.gphoto </span><span style="color:#323232;">.grc_gnuradio </span><span style="color:#323232;">.gr_fftw_wisdom </span><span style="color:#323232;">.gr_fftw_wisdom.lock </span><span style="color:#323232;">gr-gsm </span><span style="color:#323232;">.gtkrc-2.0 </span><span style="color:#323232;">.hplip </span><span style="color:#323232;">.icons </span><span style="color:#323232;">iqtosharp </span><span style="color:#323232;">.java </span><span style="color:#323232;">.kal_fftw_plan </span><span style="color:#323232;">.kde4 </span><span style="color:#323232;">.lesshst </span><span style="color:#323232;">.local </span><span style="color:#323232;">.minetest </span><span style="color:#323232;">missaurpkg.png </span><span style="color:#323232;">.mozilla </span><span style="color:#323232;">Music </span><span style="color:#323232;">.openjfx </span><span style="color:#323232;">options.txt </span><span style="color:#323232;">.packettracer </span><span style="color:#323232;">packettracer </span><span style="color:#323232;">Pictures </span><span style="color:#323232;">.pki </span><span style="color:#323232;">pkttheme </span><span style="color:#323232;">Public </span><span style="color:#323232;">.putty </span><span style="color:#323232;">.python_history </span><span style="color:#323232;">qsstv </span><span style="color:#323232;">.qt-dab.ini </span><span style="color:#323232;">.qt-dab-presets.xml </span><span style="color:#323232;">.qt-dab-schedule.ini </span><span style="color:#323232;">.qt-scanList.xml </span><span style="color:#323232;">.rnd </span><span style="color:#323232;">rtl_wmbus </span><span style="color:#323232;">sdr-trunk </span><span style="color:#323232;">SDRTrunk </span><span style="color:#323232;">sdr-trunk-linux-x86_64-v0.5.0-beta6 </span><span style="color:#323232;">sdr-trunk-linux-x86_64-v0.5.3 </span><span style="color:#323232;">snapcore.png </span><span style="color:#323232;">speedtest-1.2.0 </span><span style="color:#323232;">.ssh </span><span style="color:#323232;">.ssr </span><span style="color:#323232;">.steam </span><span style="color:#323232;">.steampath </span><span style="color:#323232;">.steampid </span><span style="color:#323232;">Templates </span><span style="color:#323232;">tmp </span><span style="color:#323232;">Videos </span><span style="color:#323232;">.viminfo </span><span style="color:#323232;">VirtualBox VMs </span><span style="color:#323232;">.wget-hsts </span><span style="color:#323232;">.wine </span><span style="color:#323232;">wmbusmeters </span><span style="color:#323232;">.wxlistlog </span><span style="color:#323232;">.wxtoimg </span><span style="color:#323232;">wxtoimg </span><span style="color:#323232;">.wxtoimglic </span><span style="color:#323232;">.wxtoimgrc </span><span style="color:#323232;">.Xauthority </span><span style="color:#323232;">.Xclients </span><span style="color:#323232;">.xinitrc </span><span style="color:#323232;">.zcompdump </span><span style="color:#323232;">zesarux </span><span style="color:#323232;">.zesaruxrc </span><span style="color:#323232;">.zhistory </span><span style="color:#323232;">.zshrc </span>
:::
Pretty clean, I’d say. At least on this install.
Blamemeta, Lies. I see no .porn folder!
AffineConnection, /usr/local/share/porn
MonkderZweite, wiki.archlinux.org/title/XDG_Base_Directory
Do that for your tools in
/etc/profile.d/01-xdg
, make it executable, restart, done. Just make sure theXDG_*
variables are on top.
sushibowl, Lots of tools ignore xdg, and issues asking to add support get bogged down in backwards compatibility problems. The best they achieve is to introduce yet another env variable to control where the config goes. It’s really annoying.
I have a bunch of
TOOLX_CONFIG=“$XDG_CONFIG_HOME/toolx”
stuff in my bashrc.
Add comment