Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-11-08 07:21:36

damufo
Member
Registered: 2024-09-25
Posts: 4
UbuntuFirefox 128.0

Set XDG_DATA_HOME

Hello:

XDG_DATA_HOME is not set for my system.


○ → env | grep XDG
XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_MENU_PREFIX=xfce-
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=xubuntu
XDG_SESSION_TYPE=x11
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/damufo
XDG_CURRENT_DESKTOP=XFCE
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_VTNR=7
XDG_SESSION_ID=c2
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share


Where I add this path?
~./config/user-dirs.dirs
I try
xdg-user-dirs-update --set DATA_HOME ~/.local/share
But result is that add:
XDG_DATA_HOME_DIR="$HOME/.local/share"

Very thanks.

Offline

#2 2024-11-08 11:08:46

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 929
LinuxFirefox 132.0

Re: Set XDG_DATA_HOME

You gave it an explicit path so now that's what it is.

Here is mine for comparison.

env | grep XDG
XDG_CONFIG_DIRS=/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_MENU_PREFIX=xfce-
XDG_CONFIG_HOME=/home/dan/.config
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=xfce
XDG_SESSION_TYPE=x11
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/dan
XDG_CURRENT_DESKTOP=XFCE
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_CACHE_HOME=/home/dan/.cache
XDG_SESSION_CLASS=user
XDG_VTNR=7
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share


But it's all right, when you're all in pain and you feel the rain come down
It's alright, when you find your way, then you see it disappear
It's alright....
Chris Cornell

Online

#3 2024-11-08 17:02:21

damufo
Member
Registered: 2024-09-25
Posts: 4
UbuntuFirefox 128.0

Re: Set XDG_DATA_HOME

https://specifications.freedesktop.org/ … #variables

$XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

Does anyone know how to set this variable persistently in the system.

I need this variable for gspell.

Very thanks.

Offline

#4 2024-11-08 19:22:51

mint4all
Member
From: off the map
Registered: 2018-08-21
Posts: 298
LinuxFirefox 132.0

Re: Set XDG_DATA_HOME

damufo wrote:

https://specifications.freedesktop.org/ … #variables

$XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

Does anyone know how to set this variable persistently in the system.
I need this variable for gspell.
Very thanks.

Greetings to you! You might want to take a look at one of my earlier posts re. this topic, @ https://forum.xfce.org/viewtopic.php?pid=71808#p71808 , and how I solved my similar path-related problem with a permanent tweak. Still works fine to this day...

Cheers, m4a


Linux Mint 21.3 -- xfce 4.18 ... Apple iMAC -- Lenovo, Dell, HP Desktops and Laptops -- Family & Community Support

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 531.58 KiB (Peak: 532.55 KiB) ]