brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.99k stars 2.36k forks source link

Allow brave-browser.desktop to open URLs in Incognito mode #41667

Open willybcode opened 1 month ago

willybcode commented 1 month ago

Platforms

Linux

Description

The brave-browser.desktop file should be modified to work with a URL parameter when using the [Desktop Action new-private-window]. This would allow users to open links in incognito mode from desktop icons, context menus, and other launchers.

Currently, the Exec=/usr/bin/brave-browser --incognito statement does not support URLs. Instead, it should be updated to use Exec=/usr/bin/brave-browser --incognito %U, similar to how Firefox-based browsers handle this feature.

TLDR: Update brave-browser.desktop to allow opening links in incognito mode by modifying the Exec statement to use %U.

USE CASE:

I use Junction to pick a browser to open links. With the modified Exec=/usr/bin/brave-browser-beta --incognito %U, I have the option appear when right-clicking as shown below:

Image

Having this feature would greatly improve my user experience and make it easier to use Brave Browser with other software and scripts that rely on the brave-browser.desktop file.

JP-sDEV commented 1 month ago

Hi can I be assigned this issue?

bsclifton commented 1 month ago

@JP-sDEV no need for assignment - please feel free to grab! 😄 Ping here if you run into any issues or need help