Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vmware workstation - help not rendered in chromium [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kimmie
Guru
Guru


Joined: 08 Sep 2004
Posts: 531
Location: Australia

PostPosted: Sun Aug 07, 2011 11:47 pm    Post subject: vmware workstation - help not rendered in chromium [solved] Reply with quote

I just installed vmware workstation, and it bugged me that chromium refuses to display the local help (instead, I get to see a couple of blank frames with a divider). Turns out this happens because of chrome's security restrictions on file:∕∕ URLs. It treats every file:∕∕ as coming from a separate domain, so it sees the vmware help as a potential cross-site scripting attack. Firefox behaves the same way.

If you're not worried about the security issues, you can work around this by placing CHROMIUM_USER_FLAGS=--allow-file-access-from-files in your environment. The flag exists for use by web developers when testing. I'm not really sure just how insecure this is.

If you're more paranoid (or just overcome by a sudden fit of extreme geek, like I was), you can restrict the workaround to browsers invoked from vmware:
Code:
alias vmware='CHROMIUM_USER_FLAGS="--allow-file-access-from-files
  --proxy-server=127.0.0.1:0 --proxy-bypass-list=vmware.com,*.vmware.com
  ---user-data-dir=$HOME/.config/chromium-vmware" vmware'

If you want that in your desktop menu, use the command:
Code:
bash -c 'CHROMIUM_USER_FLAGS="--proxy-server=127.0.0.1:0 --proxy-bypass-list=vmware.com,*.vmware.com
   --allow-file-access-from-files --user-data-dir=$HOME/.config/chromium-vmware" exec /opt/vmware/bin/vmware'

The -–user-data-dir forces a separate chrome profile, which will make sure instances of chrome opened from vmware aren't handled by any already-running browser processes. The –-proxy-server is a black hole to prevent these instances accessing the internet; that's just so you don't forget and keep using them after closing vmware. The -–proxy-bypass-list overrides the black hole and allows you to access vmware online help.

(using info from stackoverflow)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum