summary refs log tree commit diff
path: root/pkgs/desktops/deepin/deepin-wm
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2019-04-20 00:03:41 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2019-05-10 19:05:52 -0300
commitedc66ee77c8f1c5e9a644b9337b3f57b0eb0a85e (patch)
tree29d3d467d147dd476e8908a6d724d33265a55f09 /pkgs/desktops/deepin/deepin-wm
parenta6388e030a235bc7336ff6bf80775d104c678608 (diff)
downloadnixpkgs-edc66ee77c8f1c5e9a644b9337b3f57b0eb0a85e.tar
nixpkgs-edc66ee77c8f1c5e9a644b9337b3f57b0eb0a85e.tar.gz
nixpkgs-edc66ee77c8f1c5e9a644b9337b3f57b0eb0a85e.tar.bz2
nixpkgs-edc66ee77c8f1c5e9a644b9337b3f57b0eb0a85e.tar.lz
nixpkgs-edc66ee77c8f1c5e9a644b9337b3f57b0eb0a85e.tar.xz
nixpkgs-edc66ee77c8f1c5e9a644b9337b3f57b0eb0a85e.tar.zst
nixpkgs-edc66ee77c8f1c5e9a644b9337b3f57b0eb0a85e.zip
deepin.deepin-wm: use absolute path in desktop file
Diffstat (limited to 'pkgs/desktops/deepin/deepin-wm')
-rw-r--r--pkgs/desktops/deepin/deepin-wm/default.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/desktops/deepin/deepin-wm/default.nix b/pkgs/desktops/deepin/deepin-wm/default.nix
index 37e4cb2002b..986bee2f0dd 100644
--- a/pkgs/desktops/deepin/deepin-wm/default.nix
+++ b/pkgs/desktops/deepin/deepin-wm/default.nix
@@ -1,6 +1,6 @@
 { stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, vala, gnome3,
-  bamf, clutter-gtk, pantheon, libgee, libcanberra-gtk3, libwnck3,
-  deepin-menu, deepin-mutter, deepin-wallpapers,
+  dbus, bamf, clutter-gtk, pantheon, libgee, libcanberra-gtk3,
+  libwnck3, deepin-menu, deepin-mutter, deepin-wallpapers,
   deepin-desktop-schemas, wrapGAppsHook, deepin }:
 
 stdenv.mkDerivation rec {
@@ -28,6 +28,7 @@ stdenv.mkDerivation rec {
   buildInputs = [
     bamf
     clutter-gtk
+    dbus
     deepin-desktop-schemas
     deepin-menu
     deepin-mutter
@@ -40,10 +41,15 @@ stdenv.mkDerivation rec {
   ];
 
   postPatch = ''
-    searchHardCodedPaths
-    fixPath ${deepin-wallpapers} /usr/share/backgrounds src/Background/BackgroundSource.vala
+    searchHardCodedPaths  # debugging
+
     # fix background path
+    fixPath ${deepin-wallpapers} /usr/share/backgrounds src/Background/BackgroundSource.vala
     sed -i 's|default_background.jpg|deepin/desktop.jpg|' src/Background/BackgroundSource.vala
+
+    # fix executable paths in desktop files
+    sed -i -e "s,Exec=dbus-send,Exec=${dbus}/bin/dbus-send," data/gala-multitaskingview.desktop.in
+    sed -i -e "s,Exec=deepin-wm,Exec=$out/bin/deepin-wm," data/gala.desktop
   '';
 
   NIX_CFLAGS_COMPILE = "-DWNCK_I_KNOW_THIS_IS_UNSTABLE";
@@ -52,6 +58,10 @@ stdenv.mkDerivation rec {
     NOCONFIGURE=1 ./autogen.sh
   '';
 
+  postFixup = ''
+    searchHardCodedPaths $out  # debugging
+  '';
+
   enableParallelBuilding = true;
 
   passthru.updateScript = deepin.updateScript { inherit name; };