LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-24-2013, 08:09 PM   #16
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled

Quote:
Originally Posted by qweasd View Post
So how the heck does xdg-open start firefox? And how can I change that? Can I make it obey ~/.local/share/applications/mimeapps.list? Setting $KDE_FULL_SESSION seems to do the trick, but is that a clean solution in the absence of KDE? I don't want anyone else to get confused by assuming that KDE is running.
Of course, one only needs to open the bash script and read the source to find out that "firefox" is hard-coded into xdg-open to be the first browser to try. As a design decision, this is just wrong on too many levels... Just the fact that it is a total mockery of the query mechanism is too much already.
 
Old 11-26-2013, 02:59 PM   #17
henoch
LQ Newbie
 
Registered: Oct 2013
Posts: 7

Rep: Reputation: Disabled
Hi,

While struggling with understanding of the weird xdg-open concepts I stumbled upon this post.
I actually started to think if there is any mandatory need of having the xdg-utils installed on my machine?
Will removing it cause some dependency problems? I noticed it is part of most major distributions these days.
But is it really a necessity?

thanks

H.
 
Old 11-26-2013, 07:05 PM   #18
Spect73
Member
 
Registered: Aug 2013
Distribution: Slackware 14.1
Posts: 128

Rep: Reputation: Disabled
Quote:
Originally Posted by henoch View Post
Hi,

While struggling with understanding of the weird xdg-open concepts I stumbled upon this post.
I actually started to think if there is any mandatory need of having the xdg-utils installed on my machine?
Will removing it cause some dependency problems? I noticed it is part of most major distributions these days.
But is it really a necessity?

thanks

H.
Do what I do. I have five backups of all data that I want to keep. Never attempt this without good backups of data. Then, do a fresh install, while specifying not to install certain packages. If a package you left out is needed by something you normally use, you will know fairly quickly. Of course, if it's only needed by something you don't use you won't detect that unless you stumble onto it later on. That is why I never ask a question about a particular piece of software unless I've a full Slackware install to use as a base. This even includes building a SlackBuilds package. I've found that when playing around it is rather easy to forget what I've done, so after playtime I do a fresh, full install. Maybe not the best manner to learn, but it works well for me.

Coordially,
 
Old 12-01-2013, 11:42 AM   #19
henoch
LQ Newbie
 
Registered: Oct 2013
Posts: 7

Rep: Reputation: Disabled
Well,

It might work for you, but for me a fresh install would mean a lot of reconfiguration and retweaking that would have to be done in order to bring the system to full usable state.
That's why I prefer to ask before I get rid of something that is a part of some application or have some dependencies.
As you correctly spotted you may not notice anything for the first couple of days/weeks and than you forget about it. Later on, after something crashes you wouldn't know what is the reason. And the reason might be the package you removed and forgot about...

I use Slack as well.
Regards

Last edited by henoch; 12-04-2013 at 12:00 PM.
 
Old 09-23-2018, 05:12 AM   #20
kasinathps
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by Totoro-kun View Post
Thank you very much, T3slider. The problem indeed was in xdg-open failing to detect mate as gnome variant. Mate indeed uses gvfs-open. So I did a little, but dirty modification to xdg-open script:
Code:
# Checks for known desktop environments
# set variable DE to the desktop environments name, lowercase

detectDE()
{
    if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde;
    elif [ x"$DESKTOP_SESSION" != x"MATE" ]; then DE=gnome;
    elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;
    elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
    elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde;
    else DE=""
    fi
}
Basically, just modified $GNOME_DESKTOP_SESSION_ID to $DESKTOP_SESSION and replaced GNOME with MATE, so it detects Mate as gnome, there for uses gvfs-open. So far everything seems to work fine. Thanks again!
Thanks Bro !
I was just wandering for a solution and this works perfectly.
There was a huge chunk of code in DetectDE in my distro,I replaced it with your lines and It worked!
Thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xdg-open crashes when I try to open something with it (Segmentation fault) Vexe VectorLinux 1 02-11-2013 11:38 AM
open list of files with xdg-open mahkoe Programming 1 02-03-2013 11:48 AM
xdg-open, gnome-open or kde(4?)-open??? akamikeym Programming 0 08-03-2010 08:54 AM
firefox dos not open when run under user (opens only in root) saso Mandriva 8 06-15-2005 10:07 AM
Unable to open firefox from evolution - always opens Mozilla tog Fedora 1 06-19-2004 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration