forked from github/schildichat-desktop
remove desktop declaration
This commit is contained in:
parent
a0c40aa1af
commit
6103ddaea2
@ -1 +1 @@
|
|||||||
Subproject commit 7d95337b9b4847752b4d7ffac8a894c7bdc7d7ac
|
Subproject commit fb2931eb808d99995a4cd5ef168e8d4697f39e3f
|
@ -1 +1 @@
|
|||||||
Subproject commit 702182d503b5afdb262634384606797dde103a4d
|
Subproject commit 904c6378682d314fe91bf536b6207c6d5e320459
|
@ -31,6 +31,17 @@ in mkYarnPackage {
|
|||||||
ln -s $seshat node_modules/matrix-seshat
|
ln -s $seshat node_modules/matrix-seshat
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
distPhase = "true";
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = "schildichat-desktop";
|
||||||
|
exec = "schildichat-desktop %u";
|
||||||
|
icon = "schildichat";
|
||||||
|
desktopName = "SchildiChat";
|
||||||
|
genericName = "Matrix Client";
|
||||||
|
categories = "Network;InstantMessaging;Chat;";
|
||||||
|
extraEntries = "StartupWMClass=schildichat\nMimeType=x-scheme-handler/element;";
|
||||||
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/share/element"
|
mkdir -p "$out/share/element"
|
||||||
ln -s '${schildichat-web}' "$out/share/element/webapp"
|
ln -s '${schildichat-web}' "$out/share/element/webapp"
|
||||||
@ -46,21 +57,7 @@ in mkYarnPackage {
|
|||||||
ln -s "$icon" "$out/share/icons/hicolor/$(basename $icon .png)/apps/element.png"
|
ln -s "$icon" "$out/share/icons/hicolor/$(basename $icon .png)/apps/element.png"
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p "$out/share"
|
|
||||||
ln -s "${desktopItem}/share/applications" "$out/share/applications"
|
|
||||||
|
|
||||||
makeWrapper '${electron_exec}' "$out/bin/schildichat-desktop" \
|
makeWrapper '${electron_exec}' "$out/bin/schildichat-desktop" \
|
||||||
--add-flags "$out/share/element/electron${lib.optionalString useWayland " --enable-features=UseOzonePlatform --ozone-platform=wayland"}"
|
--add-flags "$out/share/element/electron${lib.optionalString useWayland " --enable-features=UseOzonePlatform --ozone-platform=wayland"}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
distPhase = "true";
|
|
||||||
desktopItem = makeDesktopItem {
|
|
||||||
name = "schildichat-desktop";
|
|
||||||
exec = "schildichat-desktop %u";
|
|
||||||
icon = "schildichat";
|
|
||||||
desktopName = "SchildiChat";
|
|
||||||
genericName = "Matrix Client";
|
|
||||||
categories = "Network;InstantMessaging;Chat;";
|
|
||||||
extraEntries = "StartupWMClass=schildichat\nMimeType=x-scheme-handler/element;";
|
|
||||||
};
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user