]> git.openpandora.org Git - pandora-libraries.git/commitdiff
Brought over pnd_hup.sh
authorskeezix <skeezix@flotsam-vm.(none)>
Sat, 7 Mar 2009 10:33:47 +0000 (05:33 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Sat, 7 Mar 2009 10:33:47 +0000 (05:33 -0500)
Added CROSSCOMPILE env to gcc in hopes of making djw's life easier

Makefile
testdata/scripts/pnd_hup.sh

index 91a918153b7e69601f91adf1e5b5a6962d060291..1d83936c629f6f3b021ce4adf2719c9b62386867 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
 #
 
 # tools
-CC = gcc
+CC = ${CROSSCOMPILE}gcc
 AR = ar
 RANLIB = ranlib
 RM = rm
index c53cf1250ac994f2016ce396176e89b5780e6788..9084f6dcc950fb772a7ce716daf35e91a8d9068d 100755 (executable)
@@ -1,3 +1,8 @@
-#!/bin/sh
-
-echo "pnd_hup script"
+#!/bin/bash
+ 
+#HUP all apps who happen to look into one of the .desktop locations
+ 
+PIDS=$(lsof +d /usr/share/applications  /usr/local/share/applications/ /home/*/Desktop /home/*/.applications /home/*/.local/share/applications | awk '!/PID/ {print $2 }' | uniq)
+for pid in $PIDS; do
+        kill -HUP $pid
+done