This commit is contained in:
Det 2016-10-13 06:46:50 +03:00
parent 6d961bbd45
commit d7d8285b0b
3 changed files with 6 additions and 8 deletions

View File

@ -27,7 +27,6 @@ pkgbase = google-chrome
depends = xdg-utils
optdepends = kdebase-kdialog: needed for file dialogs in KDE
optdepends = ttf-liberation: fix fonts for some PDFs
provides = pepper-flash
options = !emptydirs
options = !strip
source = google-chrome-stable_54.0.2840.59_amd64.deb::https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
@ -37,7 +36,7 @@ pkgbase = google-chrome
md5sums = 278c8970650c320e270480e63eba4e1d
md5sums = SKIP
md5sums = 99fa93d5e7fb5d622cef0f9621f3ffa3
md5sums = c28d84561b994b8a0aeae3d6e12265c4
md5sums = 19714f87c63cabfeb0ea8950c452a02b
pkgname = google-chrome

View File

@ -16,7 +16,6 @@ depends=('alsa-lib' 'desktop-file-utils' 'flac' 'gconf' 'gnome-themes-standard'
'ttf-font' 'xdg-utils')
optdepends=('kdebase-kdialog: needed for file dialogs in KDE'
'ttf-liberation: fix fonts for some PDFs')
provides=('pepper-flash')
options=('!emptydirs' '!strip')
install=$pkgname.install
_channel=stable
@ -27,7 +26,7 @@ source=("google-chrome-${_channel}_${pkgver}_amd64.deb::https://dl.google.com/li
md5sums=('278c8970650c320e270480e63eba4e1d'
'SKIP'
'99fa93d5e7fb5d622cef0f9621f3ffa3'
'c28d84561b994b8a0aeae3d6e12265c4')
'19714f87c63cabfeb0ea8950c452a02b')
package() {
msg2 "Extracting the data.tar.xz..."
@ -50,7 +49,7 @@ package() {
install -Dm644 eula_text.html "$pkgdir"/usr/share/licenses/google-chrome/eula_text.html
#msg2 "Fixing Chrome icon resolution..."
#sed -i "/Exec=/i\StartupWMClass=google-chrome" "$pkgdir"/usr/share/applications/google-chrome.desktop
#sed -i "/Exec=/i\StartupWMClass=Google-chrome" "$pkgdir"/usr/share/applications/google-chrome.desktop
msg2 "Fixing Chrome icon resolution and GNOME 3 context menu..."
cd "$pkgdir"

View File

@ -5,7 +5,7 @@ diff -ur usr/share/applications/google-chrome.desktop usr-patched/share/applicat
Comment[zh_CN]=访问互联网
Comment[zh_HK]=連線到網際網路
Comment[zh_TW]=連線到網際網路
+StartupWMClass=google-chrome
+StartupWMClass=Google-chrome
Exec=/usr/bin/google-chrome-stable %U
Terminal=false
Icon=google-chrome
@ -17,12 +17,12 @@ diff -ur usr/share/applications/google-chrome.desktop usr-patched/share/applicat
+
+[Desktop Action new-window]
+Name=New Window
+StartupWMClass=google-chrome
+StartupWMClass=Google-chrome
+Exec=/usr/bin/google-chrome-stable
+
+[Desktop Action new-private-window]
+Name=New Private Window
+StartupWMClass=google-chrome
+StartupWMClass=Google-chrome
+Exec=/usr/bin/google-chrome-stable --incognito
[NewWindow Shortcut Group]