目次
スタートメニューにアイコンを追加
エディタで簡単に作成できます。
簡単に作成するコツとしては、
- 同じカテゴリ・同じ階層をコピーする
- root権限で編集する
です。
今回は「Vivaldi」を参考にしました。
IceCat
$ cd /usr/share/applications
$ diff -u vivaldi-stable.desktop icecat.desktop
--- vivaldi-stable.desktop 2018-03-21 23:53:55.000000000 +0900
+++ icecat.desktop 2018-04-25 15:44:54.048628018 +0900
@@ -1,8 +1,6 @@
[Desktop Entry]
Version=1.0
-Name=Vivaldi
-# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
-# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
+Name=Icecat
GenericName=Web Browser
GenericName[ar]=متصفح الشبكة
GenericName[bg]=Уеб браузър
@@ -105,9 +103,9 @@
Comment[zh_CN]=访问互联网
Comment[zh_HK]=連線到網際網路
Comment[zh_TW]=連線到網際網路
-Exec=/usr/bin/vivaldi-stable %U
+Exec=/home/adminuser/icecat/icecat %U
Terminal=false
-Icon=vivaldi
+Icon=icecat
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
@@ -165,7 +163,7 @@
Name[vi]=Cửa sổ Mới
Name[zh_CN]=新建窗口
Name[zh_TW]=開新視窗
-Exec=/usr/bin/vivaldi-stable --new-window
+Exec=/home/adminuser/icecat/icecat --new-window
[Desktop Action new-private-window]
Name=New Incognito Window
@@ -217,4 +215,4 @@
Name[vi]=Cửa sổ ẩn danh mới
Name[zh_CN]=新建隐身窗口
Name[zh_TW]=新增無痕式視窗
-Exec=/usr/bin/vivaldi-stable --incognito
+Exec=/home/adminuser/icecat/icecat --incognito
Palemoon
$ diff -u vivaldi-stable.desktop palemoon.desktop
--- vivaldi-stable.desktop 2018-03-21 23:53:55.000000000 +0900
+++ palemoon.desktop 2018-04-25 15:43:19.668308542 +0900
@@ -1,8 +1,6 @@
[Desktop Entry]
Version=1.0
-Name=Vivaldi
-# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
-# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
+Name=Palemoon
GenericName=Web Browser
GenericName[ar]=متصفح الشبكة
GenericName[bg]=Уеб браузър
@@ -105,9 +103,9 @@
Comment[zh_CN]=访问互联网
Comment[zh_HK]=連線到網際網路
Comment[zh_TW]=連線到網際網路
-Exec=/usr/bin/vivaldi-stable %U
+Exec=/home/adminuser/palemoon/palemoon %U
Terminal=false
-Icon=vivaldi
+Icon=palemoon
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
@@ -165,7 +163,7 @@
Name[vi]=Cửa sổ Mới
Name[zh_CN]=新建窗口
Name[zh_TW]=開新視窗
-Exec=/usr/bin/vivaldi-stable --new-window
+Exec=/home/adminuser/palemoon/palemoon --new-window
[Desktop Action new-private-window]
Name=New Incognito Window
@@ -217,4 +215,4 @@
Name[vi]=Cửa sổ ẩn danh mới
Name[zh_CN]=新建隐身窗口
Name[zh_TW]=新增無痕式視窗
-Exec=/usr/bin/vivaldi-stable --incognito
+Exec=/home/adminuser/palemoon/palemoon --incognito