remove x-scheme-handler/mailto from .desktop file; change icon to follow xdg scheme

This commit is contained in:
Marcin Falkiewicz 2015-02-13 16:12:59 +01:00 committed by Thomas Tuegel
parent de893875f3
commit cea1f1b770

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation {
desktopItem = makeDesktopItem {
name = browserName;
exec = browserName + " %U";
icon = icon;
icon = "$out/icons/firefox.png";
comment = "";
desktopName = desktopName;
genericName = "Web Browser";
@ -19,13 +19,10 @@ stdenv.mkDerivation {
"text/html"
"text/xml"
"application/xhtml+xml"
"application/vnd.mozilla.xul+xml"
"x-scheme-handler/http"
"x-scheme-handler/https"
"x-scheme-handler/ftp"
"x-scheme-handler/mailto"
"x-scheme-handler/webcal"
"x-scheme-handler/about"
"x-scheme-handler/unknown"
];
};
@ -61,6 +58,9 @@ stdenv.mkDerivation {
''
}
mkdir -p $out/share/icons
ln -s "$out/lib/firefox-35.0.1/browser/icons/mozicon128.png" "$out/share/icons/firefox.png"
mkdir -p $out/share/applications
cp $desktopItem/share/applications/* $out/share/applications