NetBSD Problem Report #61034

From www@netbsd.org  Fri Nov 20 19:05:27 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 28B5A1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 20 Nov 2026 19:05:27 +0000 (UTC)
Message-Id: <20261120190525.F21821A923D@mollari.NetBSD.org>
Date: Fri, 20 Nov 2026 19:05:25 +0000 (UTC)
From: meta@pobox.com
Reply-To: meta@pobox.com
To: gnats-bugs@NetBSD.org
Subject: tmux configuration file doesn't load
X-Send-Pr-Version: www-1.0
X-From4GNATS: "meta@pobox.com via gnats" <gnats-admin@NetBSD.org>

>Number:         61034
>Category:       pkg
>Synopsis:       tmux configuration file doesn't load
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 20 19:10:00 +0000 2026
>Last-Modified:  Fri Nov 20 19:25:03 +0000 2026
>Originator:     mathew
>Release:        11.1
>Organization:
>Environment:
NetBSD pi 11.1 NetBSD 11.1 (GENERIC64) #0: Mon Nov  2 16:34:32 UTC 2026  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
Quoting the man page for tmux:

     -f file       Specify an alternative configuration file.  By default,
                   tmux loads the system configuration file from
                   /etc/tmux.conf, if present, then looks for a user
                   configuration file at ~/.tmux.conf or
                   $XDG_CONFIG_HOME/tmux/tmux.conf.

> echo $XDG_CONFIG_HOME/tmux/tmux.conf
/home/mathew/.config/tmux/tmux.conf
> ls -la /home/mathew/.config/tmux/tmux.conf
-rw-r--r--  1 mathew  users  631 Nov 20 18:40 /home/mathew/.config/tmux/tmux.conf

However, when I start tmux the config file isn't loaded. The most obvious manifestation is that I set
set-option -g status-bg white
but the status bar still shows up green. I also rebind the prefix to ^A, and that isn't performed either.
>How-To-Repeat:
Put tmux config in ~/.config/tmux/tmux.conf
Start tmux.
Verify config isn't loaded.
>Fix:

>Audit-Trail:
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/61034 CVS commit: src/external/bsd/tmux/usr.bin/tmux
Date: Fri, 20 Nov 2026 19:20:37 +0000

 Module Name:	src
 Committed By:	wiz
 Date:		Fri Nov 20 19:20:37 UTC 2026

 Modified Files:
 	src/external/bsd/tmux/usr.bin/tmux: Makefile

 Log Message:
 tmux: fix TMUX_CONF

 Addresses PR 61034.


 To generate a diff of this commit:
 cvs rdiff -u -r1.46 -r1.47 src/external/bsd/tmux/usr.bin/tmux/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Thomas Klausner <wiz@netbsd.org>
To: NetBSD bugtracking <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: pkg/61034: tmux configuration file doesn't load
Date: Fri, 20 Nov 2026 20:22:12 +0100

 For the pkgsrc package: It's in Makefile.in:

         -DTMUX_CONF='"$(sysconfdir)/tmux.conf:~/.tmux.conf:$$XDG_CONFIG_HOME/tmux/tmux.conf:~/.config/tmux/tmux.conf"' \

 and strings confirms that it ends up in the binary.

 I guess you're using /usr/bin/tmux from the base system and haven't
 noticed, and that one had a bug until a minute ago, so XDG_CONFIG_HOME
 was not properly in it.

 However, the wrong (current) path in there is

 /etc/tmux.conf:~/.tmux.conf:DG_CONFIG_HOME/tmux/tmux.conf:~/.config/tmux/tmux.conf

 so "~/.config/tmux/tmux.conf" should be loaded.
 ktrace it to find out what goes wrong.
  Thomas

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.