Keep Chrome launcher new-window action
This commit is contained in:
@@ -59,6 +59,9 @@ in
|
|||||||
cp "${prev.google-chrome}/share/applications/$desktopName" "$desktopFile"
|
cp "${prev.google-chrome}/share/applications/$desktopName" "$desktopFile"
|
||||||
substituteInPlace "$desktopFile" \
|
substituteInPlace "$desktopFile" \
|
||||||
--replace-fail "${prev.google-chrome}/bin/google-chrome-stable" "$out/bin/google-chrome-stable"
|
--replace-fail "${prev.google-chrome}/bin/google-chrome-stable" "$out/bin/google-chrome-stable"
|
||||||
|
${final.gnused}/bin/sed -i \
|
||||||
|
'/^\[Desktop Action new-window\]/,/^\[Desktop Action / s#^Exec=\(.*google-chrome-stable\)$#Exec=\1 --new-window#' \
|
||||||
|
"$desktopFile"
|
||||||
substituteInPlace "$desktopFile" \
|
substituteInPlace "$desktopFile" \
|
||||||
--replace-fail "image/gif;" "" \
|
--replace-fail "image/gif;" "" \
|
||||||
--replace-fail "image/jpeg;" "" \
|
--replace-fail "image/jpeg;" "" \
|
||||||
|
|||||||
@@ -42,6 +42,9 @@
|
|||||||
--replace-fail \
|
--replace-fail \
|
||||||
"Exec=${pkgs.google-chrome}/bin/google-chrome-stable" \
|
"Exec=${pkgs.google-chrome}/bin/google-chrome-stable" \
|
||||||
"Exec=$out/bin/google-chrome-stable"
|
"Exec=$out/bin/google-chrome-stable"
|
||||||
|
${pkgs.gnused}/bin/sed -i \
|
||||||
|
'/^\[Desktop Action new-window\]/,/^\[Desktop Action / s#^Exec=\(.*google-chrome-stable\)$#Exec=\1 --new-window#' \
|
||||||
|
"$desktop_file"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
rlruPackages = inputs.rlru.packages.${pkgs.stdenv.hostPlatform.system};
|
rlruPackages = inputs.rlru.packages.${pkgs.stdenv.hostPlatform.system};
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ in {
|
|||||||
inherit defaultApplications;
|
inherit defaultApplications;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.activation.refreshChromeDesktopMimeCache = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
home.activation.refreshChromeDesktopLaunchers = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
applications_dir="$HOME/.local/share/applications"
|
applications_dir="$HOME/.local/share/applications"
|
||||||
|
|
||||||
if [ -d "$applications_dir" ]; then
|
if [ -d "$applications_dir" ]; then
|
||||||
@@ -254,6 +254,10 @@ in {
|
|||||||
-e 's,image/png;,,g' \
|
-e 's,image/png;,,g' \
|
||||||
-e 's,image/webp;,,g' \
|
-e 's,image/webp;,,g' \
|
||||||
"$desktop_file"
|
"$desktop_file"
|
||||||
|
|
||||||
|
${pkgs.gnused}/bin/sed -i \
|
||||||
|
'/^\[Desktop Action new-window\]/,/^\[Desktop Action / s#^Exec=\(.*google-chrome-stable\)$#Exec=\1 --new-window#' \
|
||||||
|
"$desktop_file"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user