Package Details: zen-browser-twilight-bin 1.22t-1

Git Clone URL: https://aur.archlinux.org/zen-browser-twilight-bin.git (read-only, click to copy)
Package Base: zen-browser-twilight-bin
Description: Zen Browser (Twilight Build) - Performance oriented Firefox-based web browser
Upstream URL: https://zen-browser.app/
Licenses: MPL-2.0
Conflicts: zen-browser, zen-browser-bin, zen-browser-git
Provides: zen-browser
Submitter: logan_reed
Maintainer: logan_reed
Last Packager: logan_reed
Votes: 2
Popularity: 1.53
First Submitted: 2026-05-18 01:21 (UTC)
Last Updated: 2026-06-10 10:39 (UTC)

Dependencies (14)

Required by (3)

Sources (5)

Latest Comments

logan_reed commented on 2026-05-29 23:37 (UTC)

Thanks for the patches! I've applied both with a small change — extracted the ANSI color codes into named variables (GREEN, BLUE, etc.) for readability.

By the way, in the future feel free to open an issue or PR directly at https://github.com/awsl1414/aur-packages, it's easier to track and discuss that way. Appreciate it!

hotline1337 commented on 2026-05-27 19:03 (UTC)

I added improvements that make the launch wrapper use pure bash, and post event messages to be in english. Hope you can apply these patches.

From 4e9f07f683a0574c66b3e9cbc5711a5ee6074c77 Mon Sep 17 00:00:00 2001
From: hotline1337 <smafiathedead@gmail.com>
Date: Wed, 27 May 2026 21:00:52 +0200
Subject: [PATCH 1/2] use english for messages in post events

---
 zen-browser-twilight-bin.install | 22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)

diff --git a/zen-browser-twilight-bin.install b/zen-browser-twilight-bin.install
index a17876c..894bdb4 100644
--- a/zen-browser-twilight-bin.install
+++ b/zen-browser-twilight-bin.install
@@ -1,24 +1,14 @@
 post_install() {
-    echo ""
-    echo "  Zen Browser Twilight (每夜版) 已安装成功!"
-    echo "  启动命令: zen-browser-twilight"
-    echo "  自定义启动参数: ~/.config/zen-browser-twilight-flags.conf"
-    echo ""
+    echo -e "\n\e[1;32m  Zen Browser Twilight (experimental Nightly build) has been successfully installed!\e[0m"
+    echo -e "  -> \e[1;34mLaunch command:\e[0m zen-browser-twilight"
+    echo -e "  -> \e[1;34mUser flags configuration file:\e[0m ~/.config/zen-browser-twilight-flags.conf\n"
 }

 post_upgrade() {
-    echo ""
-    echo "  Zen Browser Twilight 已更新至 $1"
-    echo ""
-}
-
-pre_remove() {
-    true
+    echo -e "\n\e[1;32m  Zen Browser Twilight has been upgraded to version $1!\e[0m\n"
 }

 post_remove() {
-    echo ""
-    echo "  Zen Browser Twilight 已移除。"
-    echo "  配置文件保留在 ~/.zen/"
-    echo ""
+    echo -e "\n\e[1;33m  Zen Browser Twilight has been successfully removed.\e[0m"
+    echo -e "  -> User profile files were kept in: ~/.zen/\n"
 }
-- 
2.54.0

From b2d17899e98c30b8591951fcf856bd7afb5f7ac3 Mon Sep 17 00:00:00 2001
From: hotline1337 <smafiathedead@gmail.com>
Date: Wed, 27 May 2026 21:01:27 +0200
Subject: [PATCH 2/2] use pure bash

---
 zen-browser-twilight.sh | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/zen-browser-twilight.sh b/zen-browser-twilight.sh
index e911c42..f220a85 100644
--- a/zen-browser-twilight.sh
+++ b/zen-browser-twilight.sh
@@ -1,11 +1,26 @@
-#!/bin/bash
+#!/usr/bin/env bash
+
+# Enable strict bash rules for easier debugging and security.
+set -u

 XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
+FLAGS_FILE="${XDG_CONFIG_HOME}/zen-browser-twilight-flags.conf"
+
+export MOZ_APP_LAUNCHER="/usr/bin/zen-browser-twilight"
+
+declare -a ZEN_USER_FLAGS=()

-export MOZ_APP_LAUNCHER=/usr/bin/zen-browser-twilight
+# Safely load user flags
+if [[ -f "$FLAGS_FILE" ]]; then
+    while read -r line || [[ -n "$line" ]]; do
+        trimmed="${line#"${line%%[![:space:]]*}"}"
+        trimmed="${trimmed%"${trimmed##*[![:space:]]}"}"

-if [[ -f "${XDG_CONFIG_HOME}/zen-browser-twilight-flags.conf" ]]; then
-    mapfile -t ZEN_USER_FLAGS <<<"$(grep -v '^#' "${XDG_CONFIG_HOME}/zen-browser-twilight-flags.conf")"
+        if [[ -n "$trimmed" && ! "$trimmed" =~ ^# ]]; then
+            ZEN_USER_FLAGS+=("$trimmed")
+        fi
+    done < "$FLAGS_FILE"
 fi

+# Launch the browser with the passed arguments
 exec /opt/zen-browser-twilight-bin/zen-bin "${ZEN_USER_FLAGS[@]}" "$@"
-- 
2.54.0