public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Richard Shaw <hobbes1069@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/xwxapt] f45: Add patch.
Date: Thu, 27 Aug 2026 22:32:39 GMT [thread overview]
Message-ID: <178786995999.1.2923415948745923984.rpms-xwxapt-feae972216ad@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/xwxapt
Branch : f45
Commit : feae972216ad67688e3bccc24f84e1aedb8ddd62
Author : Richard Shaw <hobbes1069@gmail.com>
Date : 2026-08-27T12:24:30-05:00
Stats : +34/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/xwxapt/c/feae972216ad67688e3bccc24f84e1aedb8ddd62?branch=f45
Log:
Add patch.
---
diff --git a/xwxapt-config.patch b/xwxapt-config.patch
new file mode 100644
index 0000000..4fff4ed
--- /dev/null
+++ b/xwxapt-config.patch
@@ -0,0 +1,34 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -88,16 +88,26 @@
+ rc_data.ifft_decimate = IFFT_RTLSDR_DECIMATE;
+ rc_data.ifft_scale = IFFT_SDR_SCALE;
+
+- /* Create file path to xwxapt glade path */
++ /* Prefer system-wide Glade file for package installs, then fall
++ * back to the per-user copy under $HOME/xwxapt/ */
+ Strlcpy( rc_data.xwxapt_glade,
+- getenv("HOME"), sizeof(rc_data.xwxapt_glade) );
+- Strlcat( rc_data.xwxapt_glade,
+- "/xwxapt/xwxapt.glade", sizeof(rc_data.xwxapt_glade) );
++ PACKAGE_DATA_DIR "/xwxapt/xwxapt.glade",
++ sizeof(rc_data.xwxapt_glade) );
+
+- /* Check for the Glade config file */
+ FILE *fp = fopen( rc_data.xwxapt_glade, "r" );
+ if( fp == NULL )
+ {
++ /* Fall back to user-local path */
++ Strlcpy( rc_data.xwxapt_glade,
++ getenv("HOME"), sizeof(rc_data.xwxapt_glade) );
++ Strlcat( rc_data.xwxapt_glade,
++ "/xwxapt/xwxapt.glade", sizeof(rc_data.xwxapt_glade) );
++ fp = fopen( rc_data.xwxapt_glade, "r" );
++ }
++
++ /* Check for the Glade config file */
++ if( fp == NULL )
++ {
+ fprintf( stderr, "xwxapt: cannot open xwxapt Glade GUI Description file.\n" );
+ perror( rc_data.xwxapt_glade );
+ fprintf( stderr, "xwxapt: trying to create xwxapt config directory "
reply other threads:[~2026-08-27 22:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178786995999.1.2923415948745923984.rpms-xwxapt-feae972216ad@fedoraproject.org \
--to=hobbes1069@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox