diff options
author | Marcin Falkiewicz <avalatron@gmail.com> | 2015-02-13 16:12:59 +0100 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2015-03-22 15:22:52 -0500 |
commit | cea1f1b770a7c52c44122188a75f3d777602a304 (patch) | |
tree | a92c98137d19143d8269e01614841da15b425aa7 /pkgs/applications/networking/browsers | |
parent | de893875f3e90fc732df6eee0a787ac13becd885 (diff) |
remove x-scheme-handler/mailto from .desktop file; change icon to follow xdg scheme
Diffstat (limited to 'pkgs/applications/networking/browsers')
-rw-r--r-- | pkgs/applications/networking/browsers/firefox/wrapper.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix index 02bb6a55b429a..b43f22cafb6af 100644 --- a/pkgs/applications/networking/browsers/firefox/wrapper.nix +++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix @@ -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 |