Skip to content

Commit 1f4456a

Browse files
committed
correction de bugs
1 parent cf20e78 commit 1f4456a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

google2ubuntu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ def sendto(self):
7474
sys.exit(1)
7575

7676
# Initialisation des notifications
77-
os.system('rm /tmp/g2u* 2>/dev/null')
77+
os.system('rm /tmp/g2u_*_'+PID+' 2>/dev/null')
7878
os.system('python '+os.path.dirname(os.path.abspath(__file__))+'/librairy/osd.py '+PID+' &')
7979
g2u = interface()

librairy/osd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
n.show()
4646
time.sleep(2)
4747
n.close()
48-
os.system('rm /tmp/g2u_* 2>/dev/null')
48+
os.system('rm /tmp/g2u_*_'+PID+' 2>/dev/null')
4949
sys.exit(1)
5050

5151
if os.path.exists(result) and RESULT == False:
@@ -88,4 +88,4 @@
8888
n.show()
8989
time.sleep(1)
9090
n.close()
91-
os.system('rm /tmp/g2u_* 2>/dev/null')
91+
os.system('rm /tmp/g2u_*_'+PID+' 2>/dev/null')

modules/wikipedia/wikipedia.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
CONTENU="$1"
33
CONTENU=$(echo $CONTENU | sed "s/ /+/g")
4-
xdg-open http://www.google.com/search?q="$CONTENU" &
4+
xdg-open http://fr.wikipedia.org/wiki/"$CONTENU" &
55

66
exit 0

modules/youtube/youtube.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
CONTENU="$1"
33
CONTENU=$(echo $CONTENU | sed "s/ /+/g")
44
echo $CONTENU
5-
xdg-open http://www.google.com/search?q="$CONTENU" &
5+
xdg-open http://www.youtube.com/results?search_query="$CONTENU" &
66

77
exit 0

0 commit comments

Comments
 (0)