remove x-scheme-handler/mailto from .desktop file; change icon to follow xdg scheme
This commit is contained in:
parent
de893875f3
commit
cea1f1b770
1 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ stdenv.mkDerivation {
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = browserName;
|
name = browserName;
|
||||||
exec = browserName + " %U";
|
exec = browserName + " %U";
|
||||||
icon = icon;
|
icon = "$out/icons/firefox.png";
|
||||||
comment = "";
|
comment = "";
|
||||||
desktopName = desktopName;
|
desktopName = desktopName;
|
||||||
genericName = "Web Browser";
|
genericName = "Web Browser";
|
||||||
|
@ -19,13 +19,10 @@ stdenv.mkDerivation {
|
||||||
"text/html"
|
"text/html"
|
||||||
"text/xml"
|
"text/xml"
|
||||||
"application/xhtml+xml"
|
"application/xhtml+xml"
|
||||||
|
"application/vnd.mozilla.xul+xml"
|
||||||
"x-scheme-handler/http"
|
"x-scheme-handler/http"
|
||||||
"x-scheme-handler/https"
|
"x-scheme-handler/https"
|
||||||
"x-scheme-handler/ftp"
|
"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
|
mkdir -p $out/share/applications
|
||||||
cp $desktopItem/share/applications/* $out/share/applications
|
cp $desktopItem/share/applications/* $out/share/applications
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue