missing paths.diff
parent
63410d8b78
commit
8a237a16f2
|
@ -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;
|
Loading…
Reference in New Issue