Make config flags XDG compliant

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-05-22 20:58:37 +02:00
parent 829bbe270c
commit 8ab5885e80
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 9 additions and 7 deletions

View file

@ -1,7 +1,7 @@
pkgbase = google-chrome-dev pkgbase = google-chrome-dev
pkgdesc = The popular and trusted web browser by Google (Dev Channel) pkgdesc = The popular and trusted web browser by Google (Dev Channel)
pkgver = 84.0.4147.13 pkgver = 84.0.4147.13
pkgrel = 1 pkgrel = 2
url = https://www.google.com/chrome url = https://www.google.com/chrome
install = google-chrome-dev.install install = google-chrome-dev.install
arch = x86_64 arch = x86_64
@ -28,7 +28,7 @@ pkgbase = google-chrome-dev
source = google-chrome-unstable.sh source = google-chrome-unstable.sh
sha512sums = 5286b23ef015ada449bd1f2d18abc1fb1918f9aa5a2bc1eb0bf5ca60960c468b001d883ca7e655b0756501316824c12b9af681026cde55d688391019c5673f6e sha512sums = 5286b23ef015ada449bd1f2d18abc1fb1918f9aa5a2bc1eb0bf5ca60960c468b001d883ca7e655b0756501316824c12b9af681026cde55d688391019c5673f6e
sha512sums = a225555c06b7c32f9f2657004558e3f996c981481dbb0d3cd79b1d59fa3f05d591af88399422d3ab29d9446c103e98d567aeafe061d9550817ab6e7eb0498396 sha512sums = a225555c06b7c32f9f2657004558e3f996c981481dbb0d3cd79b1d59fa3f05d591af88399422d3ab29d9446c103e98d567aeafe061d9550817ab6e7eb0498396
sha512sums = 5f716219456ec8de9df4e7ee5f94bc35cdc1b079d9d1d5dab0df8d4b6e6d0fd8775bb64d0c8ce9339837d7277614c55aa05adced6e8ad49931989823ed97863b sha512sums = 349fc419796bdea83ebcda2c33b262984ce4d37f2a0a13ef7e1c87a9f619fd05eb8ff1d41687f51b907b43b9a2c3b4a33b9b7c3a3b28c12cf9527ffdbd1ddf2e
pkgname = google-chrome-dev pkgname = google-chrome-dev

View file

@ -7,7 +7,7 @@
pkgname=google-chrome-dev pkgname=google-chrome-dev
pkgver=84.0.4147.13 pkgver=84.0.4147.13
pkgrel=1 pkgrel=2
pkgdesc="The popular and trusted web browser by Google (Dev Channel)" pkgdesc="The popular and trusted web browser by Google (Dev Channel)"
arch=('x86_64') arch=('x86_64')
url="https://www.google.com/chrome" url="https://www.google.com/chrome"
@ -32,7 +32,7 @@ source=("http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-${_chan
"google-chrome-$_channel.sh") "google-chrome-$_channel.sh")
sha512sums=('5286b23ef015ada449bd1f2d18abc1fb1918f9aa5a2bc1eb0bf5ca60960c468b001d883ca7e655b0756501316824c12b9af681026cde55d688391019c5673f6e' sha512sums=('5286b23ef015ada449bd1f2d18abc1fb1918f9aa5a2bc1eb0bf5ca60960c468b001d883ca7e655b0756501316824c12b9af681026cde55d688391019c5673f6e'
'a225555c06b7c32f9f2657004558e3f996c981481dbb0d3cd79b1d59fa3f05d591af88399422d3ab29d9446c103e98d567aeafe061d9550817ab6e7eb0498396' 'a225555c06b7c32f9f2657004558e3f996c981481dbb0d3cd79b1d59fa3f05d591af88399422d3ab29d9446c103e98d567aeafe061d9550817ab6e7eb0498396'
'5f716219456ec8de9df4e7ee5f94bc35cdc1b079d9d1d5dab0df8d4b6e6d0fd8775bb64d0c8ce9339837d7277614c55aa05adced6e8ad49931989823ed97863b') '349fc419796bdea83ebcda2c33b262984ce4d37f2a0a13ef7e1c87a9f619fd05eb8ff1d41687f51b907b43b9a2c3b4a33b9b7c3a3b28c12cf9527ffdbd1ddf2e')
package() { package() {
msg2 "Extracting the data.tar.xz..." msg2 "Extracting the data.tar.xz..."

View file

@ -1,8 +1,10 @@
#!/bin/bash #!/bin/bash
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
# Allow users to override command-line options # Allow users to override command-line options
if [[ -f ~/.config/chrome-dev-flags.conf ]]; then if [[ -f $XDG_CONFIG_HOME/chrome-dev-flags.conf ]]; then
CHROME_USER_FLAGS="$(cat ~/.config/chrome-dev-flags.conf)" CHROME_USER_FLAGS="$(cat $XDG_CONFIG_HOME/chrome-dev-flags.conf)"
fi fi
# Launch # Launch