You are not logged in.

#1 2015-02-28 20:13:43

technolog
Member
From: Europe / Slovenia / Grosuplje
Registered: 2012-01-28
Posts: 117

Pass flag --process-per-site to Chromium

I want to pass this flag everytime I start Chromium.

chromium --process-per-site

I want this change to persist on package upgrade, which in turn overrides .desktop file. How to do that?

I am using Gnome Shell.

Last edited by technolog (2015-02-28 20:14:37)

Offline

#2 2015-03-01 00:14:44

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,730
Website

Re: Pass flag --process-per-site to Chromium

You could run it through a script.

#!/bin/bash
chromium --process-per-site

Say you call your script run_chrome. You then make it executable and instead of pointing your icon to the chrome executable you point it to run_chrome.
When you click the icon in the future you will run your script and you got what you wanted.

That's what I would do. wink

R.

Offline

#3 2015-03-01 01:14:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Pass flag --process-per-site to Chromium

technolog wrote:

I want this change to persist on package upgrade, which in turn overrides .desktop file. How to do that?

Easy: https://wiki.archlinux.org/index.php/De … tion_entry


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2015-03-01 04:50:13

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Pass flag --process-per-site to Chromium

you could also add that option to CHROMIUM_FLAGS in /etc/chromium/default.

Offline

#5 2015-03-01 05:27:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Pass flag --process-per-site to Chromium

You can also drop a file in /etc/chromium that adds it to CHROMIUM_FLAGS. This now works in the latest Arch package.

Offline

#6 2015-03-01 08:25:35

technolog
Member
From: Europe / Slovenia / Grosuplje
Registered: 2012-01-28
Posts: 117

Re: Pass flag --process-per-site to Chromium

Thanks, everyone!

I ended up solving this problem by making this file:

~ cat /etc/chromium/tab_policy 
CHROMIUM_FLAGS="$CHROMIUM_FLAGS --process-per-site"

Offline

#7 2015-03-01 08:48:21

rolbrok
Member
Registered: 2015-01-05
Posts: 15

Re: Pass flag --process-per-site to Chromium

If you did not want to create a file, you could have created an alias in your .bashrc or whatever your shell runs at start.

alias chromium="chromium --process-per-site"

Offline

#8 2015-03-01 12:03:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Pass flag --process-per-site to Chromium

rolbrok, that would do nothing for the OPs goal of launching chromium from a desktop file (launcher/menu entry).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB