LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-10-2017, 10:01 AM   #1
mgillen2000
LQ Newbie
 
Registered: Jul 2004
Location: Boston, MA
Posts: 8

Rep: Reputation: 0
Question Customizing xdg-open on a per-application basis


I've got a non-standard use case and can't seem to find a hint about how to do it. I have an application that uses xdg-open to open a browser. I want to customize the browser that application uses, while not changing my system-wide default browser.

The customization of mime-types and such only help with executing the direct application, and don't seem to address this need to do a targeted change for a particular application.

I would be open to wrapping the application in a script if there was some way to override what xdg-open does with environment variables, but my initial look at doing that (using $BROWSER) didn't have the desired effect.

Any ideas on things I could try?
 
Old 02-10-2017, 04:00 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 8,745
Blog Entries: 5

Rep: Reputation: 2141Reputation: 2141Reputation: 2141Reputation: 2141Reputation: 2141Reputation: 2141Reputation: 2141Reputation: 2141Reputation: 2141Reputation: 2141Reputation: 2141
my first thought was environment variables:
Code:
$ env|grep XDG
XDG_VTNR=1
XDG_SESSION_ID=c2
XDG_SEAT=seat0
XDG_RUNTIME_DIR=/run/user/1000
these could be modified freely for your application, e.g.
Code:
XDG_SESSION_ID=d1 thunderbird
maybe you could create your customized xdg session?
 
  


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
[SOLVED] using openbox as bare WM : setting xdg default application to okular fails jtwdyp Linux - Desktop 3 01-28-2016 02:13 PM
[SOLVED] How do I get xdg-open (and Chromium) to open FLV files in mpv? dugan Slackware 2 08-15-2015 04:51 PM
xdg-open crashes when I try to open something with it (Segmentation fault) Vexe VectorLinux 1 02-11-2013 11:38 AM
xdg-open, gnome-open or kde(4?)-open??? akamikeym Programming 0 08-03-2010 08:54 AM
Custom Gnome keymap on a per-application basis? darthspacey Linux - Software 0 05-23-2005 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration