.CONF files default to opening in LibreOffice rather than Mousepad when running Thunar as root

Bug #2020921 reported by NM64
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xubuntu-meta (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Tested on the live ISO of Xubuntu 23.04

An incredibly simple bug - for whatever reason, when you run Thunar as root, .CONF files will default to opening with LibreOffice.

By contrast, when you're not running Thunar as root, .CONF files will default to opening with Mousepad.

NM64 (nm64)
description: updated
Revision history for this message
NM64 (nm64) wrote (last edit ):

Here's a video demonstration, again on the live ISO of Xubuntu 23.04.

Revision history for this message
NM64 (nm64) wrote :

It would seem that this still exists in Xubuntu 23.10 beta.

Revision history for this message
Sean Davis (bluesabre) wrote :

Thanks for reporting this issue. Unfortunately, there isn't anything that can be done about this specific bug. When you run an application as root, you lose some environment variables. In particular, the XDG_ variables that are loaded in the user session are not carried to the root session.

XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share

Our default application associations exist in /usr/share/xubuntu/applications/defaults.list. Without those defaults, any application registered for text/plain can open it by default. I think they're evaluated alphabetically.

Changed in xubuntu-meta (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.