From 31f4a9b5590fdef5412f13e16888d2fa94f6f5f7 Mon Sep 17 00:00:00 2001 From: obadz Date: Mon, 30 May 2016 00:10:28 +0100 Subject: [PATCH] xfce.thunar: patch to avoid error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit «the desktop file … is in an insecure location» which pops up when invoking desktop files that are symlinks to the /nix/store this error was added by this commit: https://github.com/xfce-mirror/thunar/commit/1ec8ff89ec5a3314fcd6a57f1475654ddecc9875 «Only allow direct execution of desktop files in an XDG directory and if they are executable.» --- pkgs/desktops/xfce/core/thunar-build.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/desktops/xfce/core/thunar-build.nix b/pkgs/desktops/xfce/core/thunar-build.nix index 7a69295d34d..a68686219ba 100644 --- a/pkgs/desktops/xfce/core/thunar-build.nix +++ b/pkgs/desktops/xfce/core/thunar-build.nix @@ -17,6 +17,10 @@ stdenv.mkDerivation rec { patches = [ ./thunarx_plugins_directory.patch ]; + postPatch = '' + sed -i -e 's|thunar_dialogs_show_insecure_program (parent, _(".*"), file, exec)|1|' thunar/thunar-file.c + ''; + buildInputs = [ pkgconfig intltool gtk dbus_glib libstartup_notification libnotify libexif pcre udev @@ -35,4 +39,4 @@ stdenv.mkDerivation rec { platforms = stdenv.lib.platforms.linux; maintainers = [ stdenv.lib.maintainers.eelco ]; }; -} \ No newline at end of file +}