You are not logged in.

#1 2013-04-25 04:13:10

Dead Code
Member
Registered: 2009-01-18
Posts: 227

[SOLVED] Chromium's user flags environment variable doesn't work?

I tried setting up some custom flags for Chromium in ~/.profile. But they don't seem to work, Chromium doesn't pick it up.

~/.profile

# ~/.profile

# Chromium custom flags
export CHROMIUM_USER_FLAGS="--disk-cache-dir=/tmp/chromium-cache"

I tried adding the same in ~/.bashrc with no success.

Last edited by Dead Code (2013-04-29 08:26:41)

Offline

#2 2013-04-25 05:16:25

dodo3773
Member
Registered: 2011-03-17
Posts: 820

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

I did something very similar except I am using /etc/chromium/default and it works for me. Maybe give that a shot instead. Oh also you don't need export if you put it there:

Here is my /etc/chromium/default

# Default settings for chromium. This file is sourced by /usr/bin/chromium
CHROMIUM_USER_FLAGS="--disk-cache-dir=/tmp/cache" 

# Options to pass to chromium
CHROMIUM_FLAGS=" --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.7.700.169" 

Last edited by dodo3773 (2013-04-25 05:17:56)

Offline

#3 2013-04-26 04:06:54

Dead Code
Member
Registered: 2009-01-18
Posts: 227

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

Ah but I have multiple users. Need user specific exports.

dodo3773 wrote:

I did something very similar except I am using /etc/chromium/default and it works for me. Maybe give that a shot instead. Oh also you don't need export if you put it there:

Here is my /etc/chromium/default

# Default settings for chromium. This file is sourced by /usr/bin/chromium
CHROMIUM_USER_FLAGS="--disk-cache-dir=/tmp/cache" 

# Options to pass to chromium
CHROMIUM_FLAGS=" --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.7.700.169" 

Offline

#4 2013-04-26 04:37:58

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

Does it work if you export them from a terminal and then run chromium?

export CHROMIUM_USER_FLAGS="--disk-cache-dir=/tmp/chromium-cache" && chromium

Offline

#5 2013-04-26 08:12:31

Dead Code
Member
Registered: 2009-01-18
Posts: 227

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

When I added the variable to .bashrc it was listing in the printenv but Chromium never picked the flag.

Offline

#6 2013-04-26 08:51:24

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

Then please try anon's suggestion, maybe without export, but the direct variable:

CHROMIUM_USER_FLAGS="--disk-cache-dir=/tmp/chromium-cache" chromium

Offline

#7 2013-04-27 02:38:53

Dead Code
Member
Registered: 2009-01-18
Posts: 227

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

Launching from terminal respects the flags set, from the Application launcher it doesn't sadly. For now I have edited the Application launcher to include the flags.

Last edited by Dead Code (2013-04-27 02:39:13)

Offline

#8 2013-04-27 03:35:55

dodo3773
Member
Registered: 2011-03-17
Posts: 820

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

Dead Code wrote:

Launching from terminal respects the flags set, from the Application launcher it doesn't sadly. For now I have edited the Application launcher to include the flags.

Yeah but isn't there a way to do user specific .desktop files? Maybe it's possible to do an override or something somehow. Just throwing out ideas.

Offline

#9 2013-04-27 03:42:17

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

You can create custom .desktop files and put them inside ~/.local/share/applications/

Offline

#10 2013-04-29 08:26:20

Dead Code
Member
Registered: 2009-01-18
Posts: 227

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

Thanks for the suggestions. .desktop file is right for the job.

Offline

#11 2015-08-26 04:16:16

sudoman
Member
Registered: 2010-09-22
Posts: 3

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

Here's how I solved this problem in XFCE:

http://sudoman.ninth.su/2015/08/25/usin … m-in-xfce/

This should work for every way you might launch chromium in an xfce session.

Offline

#12 2015-08-26 12:46:49

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

Re: [SOLVED] Chromium's user flags environment variable doesn't work?

sudoman,

Please do not "necrobump" old threads - especially solved ones.  And even more so when it looks like you are only trying to spam your blog link. (edit: judging from your other two posts, I doubt this was the goal - the occasional link to a relevant blog entry is fine, but just the same this was already solved 2 years ago).

Closed.


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

Offline

Board footer

Powered by FluxBB