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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/xdg-utils/tests/xdg-desktop-menu/data/shinythings_example/install-webmirror.sh
===================================================================
--- third_party/xdg-utils/tests/xdg-desktop-menu/data/shinythings_example/install-webmirror.sh (revision 0)
+++ third_party/xdg-utils/tests/xdg-desktop-menu/data/shinythings_example/install-webmirror.sh (revision 0)
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+## usage: install-webmirror.sh install user
+## or
+## install-webmirror.sh uninstall system
+## etc.
+
+c="$1"
+p="$2"
+if [ -z "$c" ] ; then
+ c='install'
+fi
+if [ -z "$p" ] ; then
+ p="user"
+fi
+
+xdg-icon-resource "$c" --mode "$p" --size 22 ../../../icons/red-22.png webmirror.png
+xdg-icon-resource "$c" --mode "$p" --size 22 ../../../icons/red-22.png webmirror-menu.png
+xdg-icon-resource "$c" --mode "$p" --size 22 ../../../icons/red-22.png webmirror-admintool.png
+xdg-icon-resource "$c" --mode "$p" --size 64 ../../../icons/red-64.png webmirror.png
+xdg-icon-resource "$c" --mode "$p" --size 64 ../../../icons/red-64.png webmirror-menu.png
+xdg-icon-resource "$c" --mode "$p" --size 64 ../../../icons/red-64.png webmirror-admintool.png
+
+#xdg-desktop-menu "$c" "$p" --vendor shinythings ./webmirror.desktop
+#xdg-desktop-menu "$c" "$p" --vendor shinythings ./webmirror-admin.desktop
+#xdg-desktop-menu "$c" "$p" --vendor shinythings ./webmirror.directory
+#xdg-desktop-menu "$c" "$p" --vendor shinythings ./webmirror.menu
+
+xdg-desktop-menu "$c" --mode "$p" --noupdate ./webmirror.desktop
+xdg-desktop-menu "$c" --mode "$p" --noupdate ./webmirror-admin.desktop
+xdg-desktop-menu "$c" --mode "$p" --noupdate ./webmirror.directory
+xdg-desktop-menu "$c" --mode "$p" --noupdate ./webmirror.menu
+
+xdg-desktop-menu forceupdate "$p"
Property changes on: third_party/xdg-utils/tests/xdg-desktop-menu/data/shinythings_example/install-webmirror.sh
___________________________________________________________________
Name: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698