spectacle: add wrapGAppsHook
Fixes no Gsettings error when clicking saveAs. Following method mentioned in https://github.com/NixOS/nixpkgs/issues/16285
This commit is contained in:
parent
2eadf6c6e3
commit
fe35d03404
|
@ -5,11 +5,12 @@
|
||||||
, knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi
|
, knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi
|
||||||
, qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator
|
, qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator
|
||||||
, qcoro, qtquickcontrols2, wayland, plasma-wayland-protocols, kpurpose, kpipewire
|
, qcoro, qtquickcontrols2, wayland, plasma-wayland-protocols, kpurpose, kpipewire
|
||||||
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
pname = "spectacle";
|
pname = "spectacle";
|
||||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications
|
kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications
|
||||||
kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor
|
kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor
|
||||||
|
@ -20,6 +21,13 @@ mkDerivation {
|
||||||
substituteInPlace desktop/org.kde.spectacle.desktop.cmake \
|
substituteInPlace desktop/org.kde.spectacle.desktop.cmake \
|
||||||
--replace "Exec=@QtBinariesDir@/qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
|
--replace "Exec=@QtBinariesDir@/qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [ kipi-plugins libkipi ];
|
propagatedUserEnvPkgs = [ kipi-plugins libkipi ];
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://apps.kde.org/spectacle/";
|
homepage = "https://apps.kde.org/spectacle/";
|
||||||
|
|
Loading…
Reference in a new issue