I have been seeing this issue for a while. I want Brave to start in incognito mode by default. I modified brave-browser.desktop and changed the EXEC line to
/usr/bin/brave-browser-stable --incognito %U
Sometime later the file reverted to: /usr/bin/brave-browser-stable %U
So I changed it again. Same thing, after a period of time back to the default.
I even tried setting the file to read only for all users/groups
Did not make a difference.
After paying closer attention, I think this is happening when Brave auto-updates.
You have arrived. Applause. Nightlights. Fireworks. Etc.
Meanwhile, back at the ranch . . .
I do not have a Linux machine available, and I’m not quite sure if “brave” or “brave-browser” is the correct process, here. But, the remaining command line character strings for each, are the same, after the process name:
Thank you for your time and response. According to the docs, this would be correct for linux:
brave-browser-stable --incognito %U
Which is what I have set. The “–incognito” keeps being removed. Possibly upon a browser update.
Thanks to all who have replied. My issue is not with adding command line parameters. Rather it is after some period of time, the parameters dispensary from the file. In Linux that file is: /usr/share/applications/brave-browser.desktop. The line in question is: Exec=/usr/bin/brave-browser-stable --incognito %U
The --incognito will dissapear. I believe this is happening when Brave autoupdates.
Is this expected? What is the best way to prevent it?
If you’re using a desktop entry given by default upon installing the browser, perhaps it updates every time the browser updates. If that was the case, you should try creating your own desktop entry with the Exec parameter you need (i. e. Exec=/usr/bin/brave-browser-stable --incognito %U) and you can even assign a custom icon to it. You can launch Brave from there and it won’t change unless the command line arguments change for Brave.