public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gmsh] rawhide: Use xdg-open instead of hardcoded gedit
@ 2026-06-12 14:46 Sandro Mani
  0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-06-12 14:46 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gmsh
Branch : rawhide
Commit : 962940c2cbc49ebeb73e0b20c1411d5c4a3fd077
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-06-12T16:46:30+02:00
Stats  : +20/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gmsh/c/962940c2cbc49ebeb73e0b20c1411d5c4a3fd077?branch=rawhide

Log:
Use xdg-open instead of hardcoded gedit

---
diff --git a/gmsh.spec b/gmsh.spec
index 50f1609..25b97ef 100644
--- a/gmsh.spec
+++ b/gmsh.spec
@@ -18,7 +18,7 @@
 Name:       gmsh
 Summary:    A three-dimensional finite element mesh generator
 Version:    4.15.2
-Release:    2%{?dist}
+Release:    3%{?dist}
 # MPI not available on i686
 ExcludeArch: %{ix86}
 
@@ -43,6 +43,8 @@ Patch3:     gmsh_install.patch
 Patch4:     gmsh_unbundle_gl2ps.patch
 # Make gmm use superlu
 Patch5:     gmsh_gmm.patch
+# Use xdg-open instead of hardcoded gedit
+Patch6:     gmsh_xdgopen.patch
 
 BuildRequires: ann-devel
 %if %{with flexiblas}
@@ -82,6 +84,8 @@ BuildRequires: ImageMagick
 
 
 Requires:       %{name}-common = %{version}-%{release}
+# See Patch6
+Requires:       xdg-utils
 
 %description
 Gmsh is a 3D finite element grid generator with a build-in CAD engine
@@ -412,6 +416,9 @@ rm -f %{buildroot}%{_defaultdocdir}/%{name}/LICENSE.txt
 
 
 %changelog
+* Fri Jun 12 2026 Sandro Mani <manisandro@gmail.com> - 4.15.2-3
+- Add gmsh_xdgopen.patch
+
 * Sat Jun 06 2026 Python Maint <python-maint@redhat.com> - 4.15.2-2
 - Rebuilt for Python 3.15
 

diff --git a/gmsh_xdgopen.patch b/gmsh_xdgopen.patch
new file mode 100644
index 0000000..1d5763e
--- /dev/null
+++ b/gmsh_xdgopen.patch
@@ -0,0 +1,12 @@
+diff -rupN gmsh-4.15.2-source/src/common/DefaultOptions.h gmsh-4.15.2-source-new/src/common/DefaultOptions.h
+--- gmsh-4.15.2-source/src/common/DefaultOptions.h	2026-03-24 16:15:53.000000000 +0100
++++ gmsh-4.15.2-source-new/src/common/DefaultOptions.h	2026-06-12 16:44:22.390295542 +0200
+@@ -127,7 +127,7 @@ StringXString GeneralOptions_String[] =
+ #elif defined(__APPLE__)
+     "open -t %s" ,
+ #else
+-    "gedit %s" ,
++    "xdg-open %s" ,
+ #endif
+     "System command to launch a text editor" },
+   { F|S, "TmpFileName" , opt_general_tmp_filename ,

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-12 14:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 14:46 [rpms/gmsh] rawhide: Use xdg-open instead of hardcoded gedit Sandro Mani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox