author | spiralman <spiralman> | 2002-09-01 14:42:39 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-09-01 14:42:39 (UTC) |
commit | dfac71239116c4804081d925e9cf3021680b1e2c (patch) (unidiff) | |
tree | cf6a5c3897e9b73eb3415d470de95b77245abdad /noncore/tools/opie-sh/scripts/launcher_refresh.sh | |
parent | 27b087fc3458d3d0c01eb0485490a64b2a201541 (diff) | |
download | opie-dfac71239116c4804081d925e9cf3021680b1e2c.zip opie-dfac71239116c4804081d925e9cf3021680b1e2c.tar.gz opie-dfac71239116c4804081d925e9cf3021680b1e2c.tar.bz2 |
initial import of gonz's opie-sh scripts
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 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/noncore/tools/opie-sh/scripts/launcher_refresh.sh b/noncore/tools/opie-sh/scripts/launcher_refresh.sh new file mode 100755 index 0000000..7850508 --- a/dev/null +++ b/noncore/tools/opie-sh/scripts/launcher_refresh.sh | |||
@@ -0,0 +1,44 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # launcher_refresh.sh - a demonstration of opie-sh | ||
4 | # | ||
5 | # Copyright (C) 2002 gonz@directbox.com | ||
6 | # | ||
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 | ||
9 | # the Free Software Foundation; either version 2, or (at your option) | ||
10 | # any later version. | ||
11 | # | ||
12 | # This program is distributed in the hope that it will be useful, | ||
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | # GNU General Public License for more details. | ||
16 | |||
17 | OPIE_SH=opie-sh | ||
18 | |||
19 | launcher_refresh() { | ||
20 | (echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/launcher_refresh.png>" | ||
21 | echo "<h3>Refresh successful!</h3><br>" | ||
22 | echo the launcher has been refreshed. | ||
23 | echo | ||
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 | ||
26 | echo often. | ||
27 | echo "<p>" it also refreshes the input-methods. | ||
28 | ) | $OPIE_SH -t "launcher-refresh" -f | ||
29 | } | ||
30 | |||
31 | cleanup() { | ||
32 | rm -f /tmp/qcop-msg-launcher_refresh.sh | ||
33 | } | ||
34 | |||
35 | ##################################################################### | ||
36 | # | ||
37 | # main | ||
38 | |||
39 | /opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadInputMethods()" | ||
40 | #/opt/QtPalmtop/bin/qcop QPE/System "restart()" | ||
41 | /opt/QtPalmtop/bin/qcop QPE/System "linkChanged(QString)" | ||
42 | |||
43 | launcher_refresh | ||
44 | cleanup | ||