You are not logged in.
Pages: 1
Topic closed
Hello.
Running Archlinux with LXDE. The topic describes my problem. I'm not sure if it's relevent, but I was running KDE-mod. I've removed most of it save for what is required to continue using some of the KDE applications I like (eg. k3b).
PCManFM opens files correctly, I only notice this weird behaviour when executing xdg-open from the command line.
Thanks for any help you might be able to give!
Offline
I have the same problem.
Firefox should only be associated with html.
I use pekwm.
Arch x64 on Thinkpad X200s/W530
Offline
I have the same problem. I'm using icewm. I use xdg-mime to query default application for certain file type and they're correct (i.e "xdg-mime query default image/png", returns "geeqie.desktop", which is correct), but when I use xdg-open, it always opens in firefox. Any suggestion? Thanks
Offline
I found the solutions from the following threads.
http://bbs.archlinux.org/viewtopic.php?id=84844
http://bbs.archlinux.org/viewtopic.php?id=84844
Offline
I patch xdg-open as follows:
--- /usr/bin/xdg-open.orig 2009-12-16 17:41:58.000000000 -0500
+++ /usr/bin/xdg-open 2009-12-16 17:43:20.000000000 -0500
@@ -304,6 +304,7 @@
if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde;
elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
+ elif [ x"$DESKTOP_SESSION" = x"LXDE" ]; then DE=lxde;
fi
}
@@ -426,6 +427,10 @@
open_xfce "$url"
;;
+ lxde)
+ pcmanfm "$url"
+ ;;
+
generic)
open_generic "$url"
;;
~
In short, add a line in detectDE to detect LXDE and then add pcmanfm as the default opener in open_generic. Incidentally, chromium uses xdg-open .. so this helps open files from it.
Offline
xdg-open doesn't care about what xdg-mime says. If you're in GNOME, KDE, or XFCE, it uses the default app set by that desktop. Otherwise, it uses $BROWSER, or "firefox" if there's no $BROWSER set either. Very stupid...
Offline
I found the solutions from the following threads.
http://bbs.archlinux.org/viewtopic.php?id=84844
http://bbs.archlinux.org/viewtopic.php?id=84844
for completeness, the solutions: put one of those in your X startup file:
export DE=kde
export DE=gnome
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
for completeness, the solutions: put one of those in your X startup file:
export DE=kde export DE=gnome
...which means ~/.xinitrc
This solves the problem, even if no gnome or kde is installed. I'm using icewm.
Thanks for the solution.
Offline
Two years old thread and nothing new. Keep it read-only now.
Please read our forum etiquette on necro-bumping.
Closing.
To know or not to know ...
... the questions remain forever.
Offline
Pages: 1
Topic closed