Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have built chromium based on chromium.org. Now I need to modify the UI. I need to hide(remove) the address bar and also I need to disable the right click option. Could you please suggest (explain) which file I need to edit in-order to do this tasks.

share|improve this question
add comment

1 Answer 1

I'm not on my Ubuntu system right now, so I can't check it, but you should be able to run chromium in Kiosk mode. It's a command-line switch "--kiosk". This will disable the address bar for you.

For your reference, here's a full list of Chromium command line switches

To get rid of context menus, use JavaScript on the page to capture the right-click (mouse button 2) and then simply ignore the input.

share|improve this answer
    
just tried -kiosk works just fine. –  labarna May 3 '12 at 20:03
    
I am trying to edit the source code to fix it. How I can do it if I edit the source code? –  Sanil Joseph May 4 '12 at 16:29
    
Well, I'd search the source for the code that handles the -kiosk flag and make that the default state. But I have to say, that seems like an odd question for a programmer to ask here. You would likely get a better answer at The Chromuim Project (chromium.org). Just use the Discuss link and ask someone there. –  Jim C May 4 '12 at 21:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.