mirror of
https://github.com/luzifer-aur/google-chrome-dev.git
synced 2024-12-20 14:51:16 +00:00
Fix GNOME3 context menus
This commit is contained in:
parent
0402422dad
commit
c87975c3ed
3 changed files with 42 additions and 5 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -33,9 +33,11 @@ pkgbase = google-chrome-dev
|
||||||
source = google-chrome-unstable_55.0.2882.0_amd64.deb::https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
|
source = google-chrome-unstable_55.0.2882.0_amd64.deb::https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
|
||||||
source = https://www.google.com/chrome/browser/privacy/eula_text.html
|
source = https://www.google.com/chrome/browser/privacy/eula_text.html
|
||||||
source = google-chrome-unstable.sh
|
source = google-chrome-unstable.sh
|
||||||
|
source = StartupWMClass_and_GNOME3-context-menu.patch
|
||||||
md5sums = 8373f51fa04217cf7c15f16baa9271b5
|
md5sums = 8373f51fa04217cf7c15f16baa9271b5
|
||||||
md5sums = SKIP
|
md5sums = SKIP
|
||||||
md5sums = 11b55a3fec7279db32b63e3a0b97dc01
|
md5sums = 11b55a3fec7279db32b63e3a0b97dc01
|
||||||
|
md5sums = 12ad81f7e06457c9fa7e2536d32f2bd0
|
||||||
|
|
||||||
pkgname = google-chrome-dev
|
pkgname = google-chrome-dev
|
||||||
|
|
||||||
|
|
16
PKGBUILD
16
PKGBUILD
|
@ -22,10 +22,12 @@ install=$pkgname.install
|
||||||
_channel=unstable
|
_channel=unstable
|
||||||
source=("google-chrome-${_channel}_${pkgver}_amd64.deb::https://dl.google.com/linux/direct/google-chrome-${_channel}_current_amd64.deb"
|
source=("google-chrome-${_channel}_${pkgver}_amd64.deb::https://dl.google.com/linux/direct/google-chrome-${_channel}_current_amd64.deb"
|
||||||
"$url/browser/privacy/eula_text.html"
|
"$url/browser/privacy/eula_text.html"
|
||||||
'google-chrome-unstable.sh')
|
'google-chrome-unstable.sh'
|
||||||
|
'StartupWMClass_and_GNOME3-context-menu.patch')
|
||||||
md5sums=('8373f51fa04217cf7c15f16baa9271b5'
|
md5sums=('8373f51fa04217cf7c15f16baa9271b5'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'11b55a3fec7279db32b63e3a0b97dc01')
|
'11b55a3fec7279db32b63e3a0b97dc01'
|
||||||
|
'12ad81f7e06457c9fa7e2536d32f2bd0')
|
||||||
|
|
||||||
## Previous build (also see: /var/cache/pacman/pkg/google-chrome-dev-*):
|
## Previous build (also see: /var/cache/pacman/pkg/google-chrome-dev-*):
|
||||||
#source[0]='http://mirror.glendaleacademy.org/chrome/pool/main/g/google-chrome-unstable/google-chrome-unstable_55.0.2873.0-1_amd64.deb'
|
#source[0]='http://mirror.glendaleacademy.org/chrome/pool/main/g/google-chrome-unstable/google-chrome-unstable_55.0.2873.0-1_amd64.deb'
|
||||||
|
@ -51,10 +53,14 @@ package() {
|
||||||
# License
|
# License
|
||||||
install -Dm644 eula_text.html "$pkgdir"/usr/share/licenses/google-chrome-$_channel/eula_text.html
|
install -Dm644 eula_text.html "$pkgdir"/usr/share/licenses/google-chrome-$_channel/eula_text.html
|
||||||
|
|
||||||
msg2 "Fixing Chrome icon resolution..."
|
#msg2 "Fixing Chrome icon resolution..."
|
||||||
sed -i "/Exec=/i\StartupWMClass=Google-chrome-$_channel" "$pkgdir"/usr/share/applications/google-chrome-$_channel.desktop
|
#sed -i "/Exec=/i\StartupWMClass=Google-chrome-$_channel" "$pkgdir"/usr/share/applications/google-chrome-$_channel.desktop
|
||||||
|
|
||||||
msg2 "Removing unnecessities (e.g. Debian Cron job)..."
|
msg2 "Fixing Chrome icon resolution and GNOME 3 context menu..."
|
||||||
|
cd "$pkgdir"
|
||||||
|
patch -p0 -i "$srcdir"/StartupWMClass_and_GNOME3-context-menu.patch
|
||||||
|
|
||||||
|
msg2 "Removing Debian Cron job and duplicate product logos..."
|
||||||
rm -r "$pkgdir"/etc/cron.daily/ "$pkgdir"/opt/google/chrome-$_channel/cron/
|
rm -r "$pkgdir"/etc/cron.daily/ "$pkgdir"/opt/google/chrome-$_channel/cron/
|
||||||
rm "$pkgdir"/opt/google/chrome-$_channel/product_logo_*.png
|
rm "$pkgdir"/opt/google/chrome-$_channel/product_logo_*.png
|
||||||
}
|
}
|
||||||
|
|
29
StartupWMClass_and_GNOME3-context-menu.patch
Normal file
29
StartupWMClass_and_GNOME3-context-menu.patch
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
diff -ur usr/share/applications/google-chrome-unstable.desktop usr-patched/share/applications/google-chrome-unstable.desktop
|
||||||
|
--- usr/share/applications/google-chrome-unstable.desktop 2016-10-06 08:51:52.000000000 +0300
|
||||||
|
+++ usr-patched/share/applications/google-chrome-unstable.desktop 2016-10-09 17:00:17.824290100 +0300
|
||||||
|
@@ -105,6 +105,7 @@
|
||||||
|
Comment[zh_CN]=访问互联网
|
||||||
|
Comment[zh_HK]=連線到網際網路
|
||||||
|
Comment[zh_TW]=連線到網際網路
|
||||||
|
+StartupWMClass=Google-chrome-unstable
|
||||||
|
Exec=/usr/bin/google-chrome-unstable %U
|
||||||
|
Terminal=false
|
||||||
|
Icon=google-chrome-unstable
|
||||||
|
@@ -112,6 +113,17 @@
|
||||||
|
Categories=Network;WebBrowser;
|
||||||
|
MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
|
||||||
|
X-Ayatana-Desktop-Shortcuts=NewWindow;NewIncognito
|
||||||
|
+Actions=new-window;new-private-window;
|
||||||
|
+
|
||||||
|
+[Desktop Action new-window]
|
||||||
|
+Name=New Window
|
||||||
|
+StartupWMClass=Google-chrome-unstable
|
||||||
|
+Exec=/usr/bin/google-chrome-unstable
|
||||||
|
+
|
||||||
|
+[Desktop Action new-private-window]
|
||||||
|
+Name=New Private Window
|
||||||
|
+StartupWMClass=Google-chrome-unstable
|
||||||
|
+Exec=/usr/bin/google-chrome-unstable --incognito
|
||||||
|
|
||||||
|
[NewWindow Shortcut Group]
|
||||||
|
Name=New Window
|
Loading…
Reference in a new issue