LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2024, 01:33 PM   #1
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Rep: Reputation: 22
Question Do all apps use xdg-open to open URLs outside a browser?


I wonder how to intercept, hopefully ALL, openings or URLs before they open the default browser.
I've fixed it through xdg-open but if there are other ways I need to know that other application.

If there is a way to intercept a URL opening within a browser I'd like to know that too.

//B52
 
Old 03-23-2024, 02:04 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
No, unfortunately, not "all" apps use xdg-open. Some of them will actually hardcode a browser executable. One way to find out is by stracing it. Another way to find out is by looking at the source code. which you have access to because the app is open source.

Last edited by dugan; 03-23-2024 at 03:05 PM.
 
Old 03-23-2024, 03:28 PM   #3
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
hmm, tracing sounds like it would work, so now I need to find out how that works :P
Yeah, OS is great but I'm not used to C-code that probably most are written in.

When I have the time I'll do these.

Thanks for the reply
 
  


Reply



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
How do I determine which app xdg-open will use for a file? enigma9o7 Linux - General 4 07-29-2020 04:27 AM
[SOLVED] How to switch default xdg-open .... 'Web Browser' to firefox? BW-userx Linux - Desktop 2 02-07-2018 07:09 PM
xdg-open, gnome-open or kde(4?)-open??? akamikeym Programming 0 08-03-2010 08:54 AM
configure: error: The xdg python module is required (pyxdg or python-xdg) Sargalus Linux - Software 7 03-24-2010 07:34 AM
how to check urls and stop internet urls in network gface Linux - Networking 5 03-24-2005 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:11 PM.

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