updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / chromium-browser-bin / chrome-wrapper.patch
bloba4c995b661167639f321dbeacb654b33a3098f4e
1 --- a/chrome-wrapper 2011-03-20 08:46:37.000000000 +0000
2 +++ b/chrome-wrapper 2011-03-20 08:50:14.000000000 +0000
3 @@ -7,7 +7,7 @@
4 # Running Chromium via this script makes it possible to set Chromium as the
5 # default browser directly out of a compile, without needing to package it.
7 -DESKTOP="chromium-devel"
8 +DESKTOP="chromium-browser"
9 TITLE="Chromium"
11 usage() {
12 @@ -55,20 +55,46 @@
13 mkdir -p "$apps"
14 cat > "$apps/$DESKTOP.desktop" << EOF
15 [Desktop Entry]
16 -Version=1.0
17 Encoding=UTF-8
18 +Version=1.0
19 +Categories=Application;Network;WebBrowser;
21 +Comment=Browse the World Wide Web with Chromium
22 +Comment[de]=Navigieren im World Wide Web mit Chrom
23 +Comment[es]=Navegar por la World Wide Web con cromo
24 +Comment[fr]=Naviguer sur le World Wide Web avec Chrome
25 +Comment[hi]=ब्राउज़ करें वर्ल्ड वाइड वेब क्रोमियम के साथ
26 +Comment[it]=Sfoglia il World Wide Web con cromo
27 +Comment[ja]=閲覧は World Wide Web クロムと
28 +Comment[ko]=브라 우즈는 World Wide Web 크롬과
29 +Comment[ru]=Обзор World Wide Web с хромом
30 +Comment[zh]=浏览万维网的铬
31 +GenericName=Web Browser
32 +GenericName[de]=Web-Browser
33 +GenericName[es]=Navegador Web
34 +GenericName[fr]=Navigateur Web
35 +GenericName[hi]=वेब ब्राउज़र
36 +GenericName[it]=Web Browser
37 +GenericName[ja]=Webブラウザ
38 +GenericName[ko]=웹 브라우저
39 +GenericName[ru]=Веб-браузер
40 +GenericName[zh]=Web浏览器
41 Name=$TITLE
42 -Exec=$CHROME_WRAPPER %U
44 +TryExec=chromium-browser
45 +Exec=chromium-browser %U
46 +Icon=chromium-browser.png
47 +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;x-directory/webdav;x-directory/webdav-prefer-directory;image/gif;image/jpeg;image/png;
48 +StartupNotification=false
49 +StartupWMClass=Chromium
50 Terminal=false
51 -Icon=$HERE/product_logo_48.png
52 Type=Application
53 -Categories=Application;Network;WebBrowser;
54 -MimeType=text/html;text/xml;application/xhtml_xml;
55 +X-MultipleArgs=false
56 EOF
59 # Let the wrapped binary know that it has been run through the wrapper.
60 -export CHROME_WRAPPER="`readlink -f "$0"`"
61 +export CHROME_WRAPPER="/usr/bin/$DESKTOP"
62 export CHROME_DESKTOP="$DESKTOP.desktop"
64 HERE="`dirname "$CHROME_WRAPPER"`"