Jump to content

I need to write a bash script to open a program.

OrangeSunshine
Go to solution Solved by pythonmegapixel,

The best way to achieve opening in incognito by default would actually be to change the command that launching it from the menu runs.

 

To do this (assuming you are using the Cinnamon edition of Mint), launch cinnamon-menu-editor from the terminal. Select Internet at the side of the window and double-click on "Brave Web Browser", which should open a "Launcher Properties" window.

 

In the Command section of this window, replace 
/usr/bin/brave-browser-stable %U
with
/usr/bin/brave-browser-stable --incognito %U

then click OK, then Close.

 

I am not well versed in bash by any means, so forgive me if my question is obvious. I use brave as a browser, and I basically use incognito mode all the time. My problem is that as far as I know Mint, unlike windows, doesn't have an option to set brave to open as incognito by default. Could I write a script to open brave, open a new incognito window, and then close the other window?

 

Link to comment
Share on other sites

Link to post
Share on other sites

The best way to achieve opening in incognito by default would actually be to change the command that launching it from the menu runs.

 

To do this (assuming you are using the Cinnamon edition of Mint), launch cinnamon-menu-editor from the terminal. Select Internet at the side of the window and double-click on "Brave Web Browser", which should open a "Launcher Properties" window.

 

In the Command section of this window, replace 
/usr/bin/brave-browser-stable %U
with
/usr/bin/brave-browser-stable --incognito %U

then click OK, then Close.

 

____________________________________________________________________________________________________________________________________

 

 

____________________________________________________________________________________________________________________________________

pythonmegapixel

into tech, public transport and architecture // amateur programmer // youtuber // beginner photographer

Thanks for reading all this by the way!

By the way, my desktop is a docked laptop. Get over it, No seriously, I have an exterrnal monitor, keyboard, mouse, headset, ethernet and cooling fans all connected. Using it feels no different to a desktop, it works for several hours if the power goes out, and disconnecting just a few cables gives me something I can take on the go. There's enough power for all games I play and it even copes with basic (and some not-so-basic) video editing. Give it a go - you might just love it.

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, pythonmegapixel said:

The best way to achieve opening in incognito by default would actually be to change the command that launching it from the menu runs.

Thanks man! For some reason I could never figure out how to do that. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×