Run Firefox Background under Linux

The long start up time of firefox is general, especially with many add-ons. Is there any way to run firefox as background in order to obtain faster start up speed? If under windows, I have no idea, but for linux, I have find a way to hide a window to achieve running a desktop application “background”.

xdotool is a tool designed for control gui under CLI. xdotool has a option windowunmap, which mean “unmap a window, make it no longer appear on your screen”.

$ xdotool windowunmap [WID]

WID is window’s ID, which can obtain from xdotool search. A example for hiding a firefox window as follow(You must open a window of firefox):

$ xdotool windowunmap $(xdotool search --onlyvisible --name firefox)

And then the window of firefox disappears, whereas the pid can be seen of command ps -aux |grep firefox.

此条目发表在LINUX, 软件安装分类目录,贴了标签。将固定链接加入收藏夹。