Ubuntu – How Do I Open Fixed Window In Firefox (like Chrome app mode)


I'm essentially wanting to create a desktop shortcut to open a window of Firefox without tabs, locked address bar, no menu, etc.

Similar to what some pop ups look like or what Chromium Desktop Apps look like.

What options can I use to accomplish this from the command line?

Best Answer

I have an easier way I usually do this. It works with a stock Firefox installation without any customization. You can even change the height and width of the window.

The command:

firefox -url 'data:text/html;charset=utf-8,<!DOCTYPE html><html><body><script>window.open("http://google.com", "_blank","height=400,width=600,menubar=no,location=no,toolbar=no,left=100,top=100")<%2Fscript><%2Fbody><%2Fhtml>'

Just change http://google.com to the URL. You can also change the height and width variables (in pixels).

Related Question