public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xwxapt] f44: Add patch.
@ 2026-08-27 22:32 Richard Shaw
0 siblings, 0 replies; only message in thread
From: Richard Shaw @ 2026-08-27 22:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/xwxapt
Branch : f44
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=f44
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 "
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-27 22:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-27 22:32 [rpms/xwxapt] f44: Add patch Richard Shaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox