firefox: add application actions to .desktop file
This commit is contained in:
parent
7f3ad42166
commit
3b1f5eab31
1 changed files with 18 additions and 2 deletions
|
@ -86,6 +86,8 @@ let
|
||||||
++ pkcs11Modules;
|
++ pkcs11Modules;
|
||||||
gtk_modules = [ libcanberra-gtk3 ];
|
gtk_modules = [ libcanberra-gtk3 ];
|
||||||
|
|
||||||
|
launcherName = "${applicationName}${nameSuffix}";
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# #
|
# #
|
||||||
# EXTRA PREF CHANGES #
|
# EXTRA PREF CHANGES #
|
||||||
|
@ -167,7 +169,7 @@ let
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = applicationName;
|
name = applicationName;
|
||||||
exec = "${applicationName}${nameSuffix} %U";
|
exec = "${launcherName} %U";
|
||||||
inherit icon;
|
inherit icon;
|
||||||
desktopName = "${desktopName}${nameSuffix}${lib.optionalString forceWayland " (Wayland)"}";
|
desktopName = "${desktopName}${nameSuffix}${lib.optionalString forceWayland " (Wayland)"}";
|
||||||
genericName = "Web Browser";
|
genericName = "Web Browser";
|
||||||
|
@ -182,6 +184,20 @@ let
|
||||||
"x-scheme-handler/ftp"
|
"x-scheme-handler/ftp"
|
||||||
];
|
];
|
||||||
startupWMClass = wmClass;
|
startupWMClass = wmClass;
|
||||||
|
actions = {
|
||||||
|
new-window = {
|
||||||
|
name = "New Window";
|
||||||
|
exec = "${launcherName} --new-window %U";
|
||||||
|
};
|
||||||
|
new-private-window = {
|
||||||
|
name = "New Private Window";
|
||||||
|
exec = "${launcherName} --private-window %U";
|
||||||
|
};
|
||||||
|
profile-manager-window = {
|
||||||
|
name = "Profile Manager";
|
||||||
|
exec = "${launcherName} --ProfileManger";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper lndir jq ];
|
nativeBuildInputs = [ makeWrapper lndir jq ];
|
||||||
|
@ -261,7 +277,7 @@ let
|
||||||
--suffix-each GTK_PATH ':' "$gtk_modules" \
|
--suffix-each GTK_PATH ':' "$gtk_modules" \
|
||||||
--prefix PATH ':' "${xdg-utils}/bin" \
|
--prefix PATH ':' "${xdg-utils}/bin" \
|
||||||
--suffix PATH ':' "$out/bin" \
|
--suffix PATH ':' "$out/bin" \
|
||||||
--set MOZ_APP_LAUNCHER "${applicationName}${nameSuffix}" \
|
--set MOZ_APP_LAUNCHER "${launcherName}" \
|
||||||
--set MOZ_SYSTEM_DIR "$out/lib/mozilla" \
|
--set MOZ_SYSTEM_DIR "$out/lib/mozilla" \
|
||||||
--set MOZ_LEGACY_PROFILES 1 \
|
--set MOZ_LEGACY_PROFILES 1 \
|
||||||
--set MOZ_ALLOW_DOWNGRADE 1 \
|
--set MOZ_ALLOW_DOWNGRADE 1 \
|
||||||
|
|
Loading…
Reference in a new issue