From 8a237a16f252a662498ae470b57a1e01ef412282 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Tue, 7 Mar 2017 14:09:51 +0100 Subject: [PATCH] missing paths.diff --- nix/.nixpkgs/paths.diff | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 nix/.nixpkgs/paths.diff diff --git a/nix/.nixpkgs/paths.diff b/nix/.nixpkgs/paths.diff new file mode 100644 index 0000000..9ddddb4 --- /dev/null +++ b/nix/.nixpkgs/paths.diff @@ -0,0 +1,52 @@ +diff --git a/libinput-gestures b/libinput-gestures +index 7c7418e..db8326e 100755 +--- a/libinput-gestures ++++ b/libinput-gestures +@@ -4,13 +4,13 @@ + import os, sys, argparse, subprocess, shlex, re, getpass, fcntl + from pathlib import Path + +-PROG = Path(sys.argv[0]).name ++PROG = "libinput-gestures" + + # Conf file containing gesture commands. + # Search first for user file then system file. + CONFNAME = '{}.conf'.format(PROG) + USERDIR = os.getenv('XDG_CONFIG_DIR', os.path.expanduser('~/.config')) +-CONFDIRS = (USERDIR, '/etc') ++CONFDIRS = (USERDIR, str(Path(os.path.abspath(__file__)).parent / '../etc'), '/etc') + + # Set up command line arguments + opt = argparse.ArgumentParser(description=__doc__) +diff --git a/libinput-gestures-setup b/libinput-gestures-setup +index 22be217..03ff39b 100755 +--- a/libinput-gestures-setup ++++ b/libinput-gestures-setup +@@ -1,11 +1,11 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # User setup script. + # (C) Mark Blakeney, markb@berlios.de, Aug 2016. + +-PROG="$(basename $0)" ++PROG="libinput-gestures-setup" + NAME=${PROG%-*} + +-BINDIR="/usr/bin" ++BINDIR="/bin" + APPDIR="/usr/share/applications" + ICOBAS="/usr/share/icons/hicolor" + ICODIR="$ICOBAS/128x128/apps" +diff --git a/libinput-gestures.desktop b/libinput-gestures.desktop +index 903c14c..13d71f3 100644 +--- a/libinput-gestures.desktop ++++ b/libinput-gestures.desktop +@@ -2,7 +2,7 @@ + Type=Application + Terminal=false + Name=Libinput Gestures +-Exec=/usr/bin/libinput-gestures ++Exec=@out@/bin/libinput-gestures + Icon=libinput-gestures + Comment=Background application to intercept and action libinput gestures from touchpad. + Categories=GNOME;GTK;System;