Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: third_party/xdg-utils/tests/xdg-desktop-menu/data/shinythings_example/install-webmirror.sh

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Name: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/bash
2
3 ## usage: install-webmirror.sh install user
4 ## or
5 ## install-webmirror.sh uninstall system
6 ## etc.
7
8 c="$1"
9 p="$2"
10 if [ -z "$c" ] ; then
11 c='install'
12 fi
13 if [ -z "$p" ] ; then
14 p="user"
15 fi
16
17 xdg-icon-resource "$c" --mode "$p" --size 22 ../../../icons/red-22.png webmirror .png
18 xdg-icon-resource "$c" --mode "$p" --size 22 ../../../icons/red-22.png webmirror -menu.png
19 xdg-icon-resource "$c" --mode "$p" --size 22 ../../../icons/red-22.png webmirror -admintool.png
20 xdg-icon-resource "$c" --mode "$p" --size 64 ../../../icons/red-64.png webmirror .png
21 xdg-icon-resource "$c" --mode "$p" --size 64 ../../../icons/red-64.png webmirror -menu.png
22 xdg-icon-resource "$c" --mode "$p" --size 64 ../../../icons/red-64.png webmirror -admintool.png
23
24 #xdg-desktop-menu "$c" "$p" --vendor shinythings ./webmirror.desktop
25 #xdg-desktop-menu "$c" "$p" --vendor shinythings ./webmirror-admin.desktop
26 #xdg-desktop-menu "$c" "$p" --vendor shinythings ./webmirror.directory
27 #xdg-desktop-menu "$c" "$p" --vendor shinythings ./webmirror.menu
28
29 xdg-desktop-menu "$c" --mode "$p" --noupdate ./webmirror.desktop
30 xdg-desktop-menu "$c" --mode "$p" --noupdate ./webmirror-admin.desktop
31 xdg-desktop-menu "$c" --mode "$p" --noupdate ./webmirror.directory
32 xdg-desktop-menu "$c" --mode "$p" --noupdate ./webmirror.menu
33
34 xdg-desktop-menu forceupdate "$p"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698