sonnyp / Junction

Application/browser chooser
https://flathub.org/apps/re.sonny.Junction
GNU General Public License v3.0
457 stars 28 forks source link

Feature: Add default browser for given application #105

Open qwertyuiopzxcvbnmlkjhgfdsa1 opened 1 year ago

qwertyuiopzxcvbnmlkjhgfdsa1 commented 1 year ago

There should be ability to set up default browser for URL opened in given application.

To be able to do this, there should be settings in Junction, where this option could be saved/changed. What is needed: 1, Determine, from which application comes URL and have this information in application 2, Have list of applications(could be taken from gnome-control-center -> Applications?) 3, Have list of Browsers(http/s handlers)

Pair application and browser in settings and use this rule on base of which application triggered URL.

Use case: 1, I am in Word, have URL there, click to open it 2, Junction opens automatically predefined browser, because this option is saved in Junction settings.

sonnyp commented 1 year ago

There is no way to do this on Linux ATM. When Junction is set as default browser and opened with a URL – there is no way to know why / from where.

It might be possible by communicating with a GNOME Shell extension but

  1. Works on GNOME only
  2. It will be hackish
  3. It's a lot of work
sonnyp commented 1 year ago

Something I thought of that would be less hackish and possible better UX is to remember for workspace / virtual desktop.

Still needs a GNOME extension.

qwertyuiopzxcvbnmlkjhgfdsa1 commented 1 year ago

There is no way to do this on Linux ATM. When Junction is set as default browser and opened with a URL – there is no way to know why / from where.

It might be possible by communicating with a GNOME Shell extension but

1. Works on GNOME only

2. It will be hackish

3. It's a lot of work

Is there a way in Gnome to recognize active window(app in this window) as after click on URL window become active?

And we may have active window information right after click in millisecond, so information about active window would be accurate, as this is our window, from where is going URL.

And by this approach reveal source of click.

sonnyp commented 1 year ago

Without a gnome extension, no there isn't.