セカイノカタチ

世界のカタチを探求するブログ。関数型言語に興味があり、HaskellやScalaを勉強中。最近はカメラの話題も多め

Ubuntu UnityのLouncherでFirefoxのプロファイルを切り替える

UnityのLouncherで、起動オプションとかを変更する方法を探してたんだけど、ようやく見つけたのでメモ。

参考

Unity Launcherをカスタマイズする方法《Ubuntu 11.04対応》

GNOMEメニューを編集するための基礎知識

コマンドラインオプション(起動オプション)による切り替え

んで、どうしたかというと。

sudo gedit /usr/share/applications/firefox.desktop

diff /usr/share/applications/firefox.desktop firefox.desktop
156c156< Actions=NewWindow;OtherProfile;

    • -

> Actions=NewWindow;
194,200d193< < [Desktop Action OtherProfile]< Name=Open other profile< Name[ja]=新しいプロファイルを開く< Exec=firefox -no-remote -p Other< OnlyShowIn=Unity;<

こんな感じで編集。即時反映された。