brave/brave-browser

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

Open

#41,667 opened on Oct 16, 2024

View on GitHub
 (7 comments) (0 reactions) (1 assignee)JavaScript (2,164 forks)batch import
OS/DesktopOS/Linuxfeature-requestgood first issuepriority/P5

Repository metrics

Stars
 (16,194 stars)
PR merge metrics
 (Avg merge 4h 38m) (19 merged PRs in 30d)

Description

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.

Contributor guide