fix: manually install .desktop file(#46)
Might fix: https://github.com/0xc000022070/zen-browser-flake/issues/45 This commit addresses the problem where the .desktop file was not being installed properly. In my case, since the rewrite the URLs sent me to Brave instead of Zen. Are you dumb, sir?
This commit is contained in:
25
assets/desktop/zen.desktop
Normal file
25
assets/desktop/zen.desktop
Normal file
@@ -0,0 +1,25 @@
|
||||
[Desktop Entry]
|
||||
Name=Zen Browser
|
||||
Exec=zen-beta %u
|
||||
Icon=zen-beta
|
||||
Type=Application
|
||||
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
|
||||
StartupWMClass=zen-beta
|
||||
Categories=Network;WebBrowser;
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
X-MultipleArgs=false
|
||||
Keywords=Internet;WWW;Browser;Web;Explorer;
|
||||
Actions=new-window;new-private-window;profilemanager;
|
||||
|
||||
[Desktop Action new-window]
|
||||
Name=Open a New Window
|
||||
Exec=zen-beta %u
|
||||
|
||||
[Desktop Action new-private-window]
|
||||
Name=Open a New Private Window
|
||||
Exec=zen-beta --private-window %u
|
||||
|
||||
[Desktop Action profilemanager]
|
||||
Name=Open the Profile Manager
|
||||
Exec=zen-beta --ProfileManager %u
|
||||
25
assets/desktop/zen_twilight.desktop
Normal file
25
assets/desktop/zen_twilight.desktop
Normal file
@@ -0,0 +1,25 @@
|
||||
[Desktop Entry]
|
||||
Name=Zen Browser (Twilight)
|
||||
Exec=zen-twilight %u
|
||||
Icon=zen-twilight
|
||||
Type=Application
|
||||
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
|
||||
StartupWMClass=zen-twilight
|
||||
Categories=Network;WebBrowser;
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
X-MultipleArgs=false
|
||||
Keywords=Internet;WWW;Browser;Web;Explorer;
|
||||
Actions=new-window;new-private-window;profilemanager;
|
||||
|
||||
[Desktop Action new-window]
|
||||
Name=Open a New Window
|
||||
Exec=zen-twilight %u
|
||||
|
||||
[Desktop Action new-private-window]
|
||||
Name=Open a New Private Window
|
||||
Exec=zen-twilight --private-window %u
|
||||
|
||||
[Desktop Action profilemanager]
|
||||
Name=Open the Profile Manager
|
||||
Exec=zen-twilight --ProfileManager %u
|
||||
@@ -52,7 +52,7 @@ in
|
||||
inherit (variant) version;
|
||||
|
||||
src = builtins.fetchTarball {inherit (variant) url sha256;};
|
||||
desktopSrc = ./.;
|
||||
desktopSrc = ./assets/desktop;
|
||||
|
||||
nativeBuildInputs = [
|
||||
wrapGAppsHook3
|
||||
@@ -92,6 +92,8 @@ in
|
||||
# ! twilight and beta could collide if both are installed
|
||||
ln -s "$out/bin/${binaryName}" "$out/bin/zen"
|
||||
|
||||
install -D $desktopSrc/${desktopFile} $out/share/applications/${desktopFile}
|
||||
|
||||
mkdir -p "$out/lib/zen-${variant.version}/distribution"
|
||||
ln -s ${policiesJson} "$out/lib/zen-${variant.version}/distribution/policies.json"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user