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 ability to open URL in private window #107

Closed qwertyuiopzxcvbnmlkjhgfdsa1 closed 1 year ago

qwertyuiopzxcvbnmlkjhgfdsa1 commented 1 year ago

Add ability to open URL in private window. Depends on https://github.com/sonnyp/Junction/issues/105

How it could be implemented: After right click on browser in window, where user can choose browser, popup with "Open in private window" should be displayed over this browser

or

Save rule for opening URL from given application always in private mode.

sonnyp commented 1 year ago

After right click on browser in window, where user can choose browser, popup with "Open in private window" should be displayed over this browser

That's already implemented by listing desktop actions.

https://github.com/sonnyp/Junction/blob/main/data/screenshot-desktop-actions.png

sonnyp commented 1 year ago

As for

Save rule for opening URL from given application always in private mode.

See https://github.com/sonnyp/Junction/issues/5

spi43984 commented 8 months ago

Am on version 1.7 on Ubuntu - son't see any right click menu.

spi43984 commented 8 months ago

My .desktop files are missing an %U parameter under actions. If I add one I do see the right click menu.

Ex. for a chromium snap install. I copied the provided .desktop file into ~/.local/share/applications and searched for the line Actions= which looks like Actions=new-window;Incognito;TempProfile;. That means there are three action sections. I am only interested in the incognito one which starts with [Desktop Action Incognito].

There is an exec line in that section which looks like Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --incognito.

I added a %U at the end, the line looks now like Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --incognito %U. Saving that file and running update-desktop-database ~/.local/share/applications afterwards does the trick - I do see a right click menu now.

sonnyp commented 8 months ago

Thanks for sharing.

Please report the issue to the snap maintainer

spi43984 commented 8 months ago

Please report the issue to the snap maintainer

It's not only about the snap packages, also the apt/deb ones (Ubuntu/Debian) have the same issue.

sonnyp commented 8 months ago

Then to Ubuntu/Debian maintainers as well :)