changeset 28:c5f6a572bc91

bing4desktop-0.240208-0.4
author prymula
date Thu, 08 Feb 2024 12:56:34 +0100
parents 8aeafb8ad1e1
children 61c9889ed899
files bing4desktop/Makefile bing4desktop/bing4desktop.desktop bing4desktop/copy_desktop.sh bing4desktop/remove_desktop.sh
diffstat 4 files changed, 24 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/bing4desktop/Makefile	Thu Feb 08 12:55:06 2024 +0100
+++ b/bing4desktop/Makefile	Thu Feb 08 12:56:34 2024 +0100
@@ -3,13 +3,12 @@
 install: bing4desktop.py
 	mkdir -pm 0755 $(prefix)/bin
 	mkdir -pm 0755 $(prefix)/share/bing4desktop
-	#mkdir -pm 0755 /etc/xdg/autostart
+	mkdir -pm 0755 /etc/xdg/autostart
 	install -m 0755 bing4desktop.py $(prefix)/bin
 	install -m 0644 bing.ico $(prefix)/share/bing4desktop
 	install -m 0644 bing.png $(prefix)/share/bing4desktop
 	install -m 0644 bing4desktop.desktop $(prefix)/share/applications
-	#install -m 0644 bing4desktop.desktop /etc/xdg/autostart/
-	$(shell ./copy_desktop.sh)
+	install -m 0644 bing4desktop.desktop /etc/xdg/autostart/
 .PHONY: install
 
 uninstall:
@@ -17,7 +16,6 @@
 	rm $(prefix)/share/bing4desktop/bing.ico
 	rm $(prefix)/share/bing4desktop/bing.png
 	rm $(prefix)/share/applications/bing4desktop.desktop
-	#rm /etc/xdg/autostart/bing4desktop.desktop
+	rm /etc/xdg/autostart/bing4desktop.desktop
 	rmdir $(prefix)/share/bing4desktop/
-	$(shell ./copy_desktop.sh)
 .PHONY: uninstall
--- a/bing4desktop/bing4desktop.desktop	Thu Feb 08 12:55:06 2024 +0100
+++ b/bing4desktop/bing4desktop.desktop	Thu Feb 08 12:56:34 2024 +0100
@@ -11,4 +11,4 @@
 Terminal=false
 Icon=/usr/share/bing4desktop/bing.png
 
-Name[pl_PL]=bing4desktop.desktop
+Name[pl_PL]=Bing4desktop
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bing4desktop/copy_desktop.sh	Thu Feb 08 12:56:34 2024 +0100
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+MYDIR=/home
+
+for file in $(ls ${MYDIR}) ; do\
+	if  [ $file == $'lost+found' ] ; then
+		continue 
+	fi
+	cp bing4desktop.desktop /home/${file}/.local/share/applications
+done
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bing4desktop/remove_desktop.sh	Thu Feb 08 12:56:34 2024 +0100
@@ -0,0 +1,10 @@
+#?/bin/sh
+
+MYDIR=/home
+
+for file in $(ls ${MYDIR}) ; do\
+	if [ "$file" == "lost+found" ] ; then
+		continue
+	fi
+	rm /home/${file}/.local/share/applications/bing4desktop.desktop
+done