You are not logged in.
I have problems with xdg-open in LXQt.
For example if I download a file with chromium and I select "show in folder" xdg-open will not open the folder and cpu utilization will go up. The instance of xdg-open will never close unless I kill it manually.
I have also problems with Kodi with external UPnP renderer: one or more instances of xdg-mime are starting with high cpu.
I have made some tests. From terminal xdg-open will not open a folder, where gvfs-open yes.
I have mimepps.list in /home/<user>/.local/share:
[Default Applications]
inode/directory=pcmanfm-qt.desktopI have another mimeapps.list with the same content in .local/share/applications.
I was trying to reset mime configuration deleting all mimemapp.list files in /home/<user>/.local and /usr/share/applications and run update-desktop-database both as user and root but the problem persists.
This is the output of printenv | grep XDG:
XDG_VTNR=1
XDG_SESSION_ID=c1
XDG_DATA_HOME=/home/audiolinux/.local/share
XDG_MENU_PREFIX=lxqt-
XDG_SESSION_CLASS=user
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_TYPE=x11
XDG_SEAT=seat0
XDG_CONFIG_HOME=/home/audiolinux/.config
XDG_SESSION_DESKTOP=
XDG_DATA_DIRS=/home/audiolinux/.local/share:/usr/local/share/:/usr/share/
XDG_RUNTIME_DIR=/run/user/1000
XDG_CURRENT_DESKTOP=LXQtLast edited by hifi25nl (2015-04-07 10:29:39)
Offline
I don't know much about LXQt, but there are some things which you might care to check:
As far as I know, xdg-open knows nothing about LXQt as such and only tries to detect the LXDE desktop. So xdg-open is probably using its 'generic' opening code as if it there was no desktop environment. Or does LXQt call itself LXDE somewhere?
Ensure any mimeapps.list files are named/spelled correctly - you have a few variations
The user's mimeapps.list file should be in /home/<user>/.local/share/applications, not /home/<user>/.local/share
Your XDG_DATA_DIRS environment variable also contains the value of XDG_DATA_HOME, namely /home/audiolinux/.local/share. XDG_DATA_DIRS should be set to just something like: /usr/local/share/:/usr/share/
update-desktop-database will not touch mimeapps.list files; it only looks at *.desktop files and creates mimeinfo.cache files from them
To update the mimeinfo.cache files in /usr/local/share/applications and /usr/share/applications you need to run (as root):
# update-desktop-databaseTo update the mimeinfo.cache file in $HOME/.local/share/applications you need to run (as user):
$ update-desktop-database $HOME/.local/share/applicationsTry running in a terminal:
$ bash -x /usr/bin/xdg-open <foldername>to maybe find where xdg-open is going wrong
Offline
I don't know how XDG directories got messed up...I never changed them.
Now I have made:
XDG_DATA_DIRS=/usr/local/share/:/usr/share/
export XDG_DATA_DIRS
XDG_DATA_HOME=/usr/local/share/
export XDG_DATA_HOME..and now xdg-open is working fine!
Offline
Good that you have it working now, but am confused about XDG_DATA_HOME as it would normally be set to: $HOME/.local/share![]()
Offline
One more thing:
Where these variables are set so that the configuration is persistent after reboot?
( I checked /etc/profiles.d and /etc/xdg and other places)
Offline
If I set XDG_DATA_HOME to $HOME/.local/share I have the same problem as in the first post.
$HOME variable is right:
[audiolinux@archaudio ~]$ echo $HOME
/home/audiolinuxOffline
I don't run a DE, just the Openbox WM, so the XDG variables are not set up on my system.
But a sensible place to EXPORT them would be in something like:
/etc/profile.d/<file, eg local.sh>Offline
This morning I checked another time with bash -x /usr/bin/xdg-open <foldername> and I discovered that the problem is that xdg-open was trying to find pcmanfm-qt.desktop everywhere in the /home directory without finding it.
So I added pcmanfm-qt.desktop to $HOME/.local/share/applications and all is fine.
Maybe the problem was that I had made another desktop file for launchinfg pcmanfm-qt as root and this was interfering with xdg-open...I don't know. Or LXQt file associations is broken. I know that there are some bugs.
Thank you however for the support. I will mark the problem as solved.
Offline
Thank you however for the support. I will mark the problem as solved.
Good news - and you are welcome!
Offline