How to remove $XDG_RUNTIME_DIR this?

I have been using fedora for quite a while. I have not seen this particular folder before but out of nowhere it just appering in my Home folder even if i delete it, it will just recreating itself after bootingagain. How do I remove this premanently? please help

That looks like a scripting bug with something you are using.

$XDG_RUNTIME_DIR is what I would expect a script to use to find the XDG runtime directory. Do you have that in any of your customisations?

In a terminal you can see the values of the XDG variables:

env | grep XDG

This is what I see:

XDG_CONFIG_DIRS=/home/barry/.config/kdedefaults:/etc/xdg:/usr/share/kde-settings/kde-profile/default/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_MENU_PREFIX=plasma-
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_TYPE=wayland
XDG_CURRENT_DESKTOP=KDE
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_VTNR=2
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/home/barry/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
1 Like

This is all my system showing, Do you find any abnormalities here?

XDG_MENU_PREFIX=gnome-
XDG_SESSION_DESKTOP=gnome
XDG_SESSION_TYPE=wayland
XDG_CURRENT_DESKTOP=GNOME
XDG_SESSION_CLASS=user
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/home/gourabpatnaik/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/

That looks what I’d expect for Gnome.

You need to track down with app that you are running has the bug that creates the bad folder name.

What you could try is to

  1. Delete that bad folder
  2. logout
  3. Login
  4. Check if the folder is back

If it is not back then check after you start each app you run.

Let us know what you find.

1 Like

I think I found the culprit. Recently, I switched to Zen browser. It is creating this folded autometically. Any solution to fix this?

Where did you install the Zen broswer from? I did not see it in the Fedora repos.
You should report the bug the packager of Zen or the Zen developers.

I installed via Flatpak.

Find out who maintains the flatpak you are using and report the bug to them.

Okay, Thanks for your time.

For reference: browser creates unwanted directory $XDG_RUNTIME_DIR in home · Issue #3813 · zen-browser/desktop · GitHub

3 Likes