Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] vivaldi: support user flags, adopt
@ 2023-05-03 19:11 classabbyamp
  2023-05-03 19:14 ` [PR PATCH] [Updated] " classabbyamp
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: classabbyamp @ 2023-05-03 19:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

There is a new pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages vivaldi
https://github.com/void-linux/void-packages/pull/43728

vivaldi: support user flags, adopt
will now read the contents of $XDG_CONFIG_HOME/vivaldi-stable.conf and pass that to the underlying chromium

for example, to force `prefers-color-scheme: dark` and work on wayland:
```
--force-dark-mode --ozone-platform-hint=auto
```

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**



A patch file from https://github.com/void-linux/void-packages/pull/43728.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-vivaldi-43728.patch --]
[-- Type: text/x-diff, Size: 2891 bytes --]

From d86a991468bb58c22d43be9c507cc5cb2a3a6787 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 3 May 2023 15:08:42 -0400
Subject: [PATCH] vivaldi: support user flags, adopt

will now read the contents of $XDG_CONFIG_HOME/vivaldi-stable.conf and
pass that to the underlying chromium

for example, to force `prefers-color-scheme: dark` and work on wayland:
```
--force-dark-mode --ozone-platform-hint=auto
```
---
 .../vivaldi/patches/support-user-flags.patch  | 37 +++++++++++++++++++
 srcpkgs/vivaldi/template                      |  4 +-
 2 files changed, 39 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vivaldi/patches/support-user-flags.patch

diff --git a/srcpkgs/vivaldi/patches/support-user-flags.patch b/srcpkgs/vivaldi/patches/support-user-flags.patch
new file mode 100644
index 000000000000..5d3ef3bbe4b0
--- /dev/null
+++ b/srcpkgs/vivaldi/patches/support-user-flags.patch
@@ -0,0 +1,37 @@
+From 68c2dec905a7c88895c458dd40708ab9989385cf Mon Sep 17 00:00:00 2001
+From: BlackEagle <ike.devolder@gmail.com>
+Date: Wed, 19 Jan 2022 20:57:58 +0100
+Subject: [PATCH] add support for user flags
+
+Signed-off-by: BlackEagle <ike.devolder@gmail.com>
+---
+ opt/vivaldi/vivaldi | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/opt/vivaldi/vivaldi b/opt/vivaldi/vivaldi
+index 5b5f1bf..8e95859 100755
+--- a/opt/vivaldi/vivaldi
++++ b/opt/vivaldi/vivaldi
+@@ -53,6 +53,13 @@ export CHROME_VERSION_EXTRA="stable"
+ # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
+ export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
+ 
++# Allow users to override command-line options
++XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
++VIVALDI_USER_FLAGS=""
++if [[ -f "$XDG_CONFIG_HOME/vivaldi-$CHROME_VERSION_EXTRA.conf" ]]; then
++   VIVALDI_USER_FLAGS="$(cat "$XDG_CONFIG_HOME/vivaldi-$CHROME_VERSION_EXTRA.conf")"
++fi
++
+ # Sanitize std{in,out,err} because they'll be shared with untrusted child
+ # processes (http://crbug.com/376567).
+ exec < /dev/null
+@@ -60,4 +67,4 @@ exec > >(exec cat)
+ exec 2> >(exec cat >&2)
+ 
+ # Note: exec -a below is a bashism.
+-exec -a "$0" "$HERE/vivaldi-bin" "$@"
++exec -a "$0" "$HERE/vivaldi-bin" $VIVALDI_USER_FLAGS "$@"
+-- 
+2.34.1
+
diff --git a/srcpkgs/vivaldi/template b/srcpkgs/vivaldi/template
index 7e4d4e8ab554..19f9f3763110 100644
--- a/srcpkgs/vivaldi/template
+++ b/srcpkgs/vivaldi/template
@@ -1,12 +1,12 @@
 # Template file for 'vivaldi'
 pkgname=vivaldi
 version=6.0.2979.15
-revision=1
+revision=2
 _release=1
 archs="x86_64 aarch64 armv7l"
 depends="desktop-file-utils hicolor-icon-theme xz"
 short_desc="Advanced browser made with the power user in mind"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="classabbyamp <void@placeviolette.net>"
 license="custom:Proprietary"
 homepage="https://vivaldi.com"
 repository=nonfree

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-05-06 14:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03 19:11 [PR PATCH] vivaldi: support user flags, adopt classabbyamp
2023-05-03 19:14 ` [PR PATCH] [Updated] " classabbyamp
2023-05-03 19:27 ` classabbyamp
2023-05-03 19:35 ` zdykstra
2023-05-03 20:00 ` icp1994
2023-05-03 20:26 ` [PR PATCH] [Updated] " classabbyamp
2023-05-03 20:27 ` vivaldi: update to 6.0.2979.18, " classabbyamp
2023-05-03 20:27 ` classabbyamp
2023-05-03 20:28 ` classabbyamp
2023-05-05  7:24 ` [PR PATCH] [Updated] " classabbyamp
2023-05-05  7:28 ` [PR PATCH] [Updated] vivaldi: update to 6.0.2979.18, unrestrict, " classabbyamp
2023-05-06 14:06 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).