Diffstat (limited to 'noncore/tools/opie-sh/scripts/launcher_refresh.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/tools/opie-sh/scripts/launcher_refresh.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/tools/opie-sh/scripts/launcher_refresh.sh b/noncore/tools/opie-sh/scripts/launcher_refresh.sh index 7850508..c3b0617 100755 --- a/noncore/tools/opie-sh/scripts/launcher_refresh.sh +++ b/noncore/tools/opie-sh/scripts/launcher_refresh.sh | |||
@@ -1,44 +1,44 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # launcher_refresh.sh - a demonstration of opie-sh | 3 | # launcher_refresh.sh - a demonstration of opie-sh |
4 | # | 4 | # |
5 | # Copyright (C) 2002 gonz@directbox.com | 5 | # Copyright (C) 2002 gonz@directbox.com |
6 | # | 6 | # |
7 | # This program is free software; you can redistribute it and/or modify | 7 | # This program is free software; you can redistribute it and/or modify |
8 | # it under the terms of the GNU General Public License as published by | 8 | # it under the terms of the GNU General Public License as published by |
9 | # the Free Software Foundation; either version 2, or (at your option) | 9 | # the Free Software Foundation; either version 2, or (at your option) |
10 | # any later version. | 10 | # any later version. |
11 | # | 11 | # |
12 | # This program is distributed in the hope that it will be useful, | 12 | # This program is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # GNU General Public License for more details. | 15 | # GNU General Public License for more details. |
16 | 16 | ||
17 | OPIE_SH=opie-sh | 17 | OPIE_SH=$OPIEDIR/bin/opie-sh |
18 | 18 | ||
19 | launcher_refresh() { | 19 | launcher_refresh() { |
20 | (echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/launcher_refresh.png>" | 20 | (echo "<img src=$OPIEDIR/pics/opie-sh-scripts/launcher_refresh.png>" |
21 | echo "<h3>Refresh successful!</h3><br>" | 21 | echo "<h3>Refresh successful!</h3><br>" |
22 | echo the launcher has been refreshed. | 22 | echo the launcher has been refreshed. |
23 | echo | 23 | echo |
24 | echo this is useful if you installed packages using ipk instead of | 24 | echo this is useful if you installed packages using ipk instead of |
25 | echo oipkg. it is also helping if you are changing .desktop-files | 25 | echo oipkg. it is also helping if you are changing .desktop-files |
26 | echo often. | 26 | echo often. |
27 | echo "<p>" it also refreshes the input-methods. | 27 | echo "<p>" it also refreshes the input-methods. |
28 | ) | $OPIE_SH -t "launcher-refresh" -f | 28 | ) | $OPIE_SH -t "launcher-refresh" -f |
29 | } | 29 | } |
30 | 30 | ||
31 | cleanup() { | 31 | cleanup() { |
32 | rm -f /tmp/qcop-msg-launcher_refresh.sh | 32 | rm -f /tmp/qcop-msg-launcher_refresh.sh |
33 | } | 33 | } |
34 | 34 | ||
35 | ##################################################################### | 35 | ##################################################################### |
36 | # | 36 | # |
37 | # main | 37 | # main |
38 | 38 | ||
39 | /opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadInputMethods()" | 39 | $OPIEDIR/bin/qcop QPE/TaskBar "reloadInputMethods()" |
40 | #/opt/QtPalmtop/bin/qcop QPE/System "restart()" | 40 | #$OPIEDIR/bin/qcop QPE/System "restart()" |
41 | /opt/QtPalmtop/bin/qcop QPE/System "linkChanged(QString)" | 41 | $OPIEDIR/bin/qcop QPE/System "linkChanged(QString)" |
42 | 42 | ||
43 | launcher_refresh | 43 | launcher_refresh |
44 | cleanup | 44 | cleanup |