Because I am using hyprland, so many app has to launch with some parameters.
Now I am using this:
xdg.desktopEntries = {
chrome = {
name = "Chrome WebBrowser";
exec = "google-chrome-stable --enable-wayland-ime --enable-features=TouchpadOverscrollHistoryNavigation";
icon = "${pkgs.morewaita-icon-theme}/share/icons/MoreWaita/apps/scalable/com.google.Chrome.svg";
genericName = "Web Browser";
terminal = false;
categories = [ "Application" "Network" "WebBrowser" ];
mimeType = [ "text/html" "text/xml" ];
};
But this will only create new one, then there will be two results of one app in app launcher, which is annoying.
Is there any method, that I can only change the ‘exec’ of the original .desktop file?