public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gmsh] rawhide: Use xdg-open instead of hardcoded gedit
Date: Fri, 12 Jun 2026 14:46:38 GMT	[thread overview]
Message-ID: <178127559851.1.13832168324256470512.rpms-gmsh-962940c2cbc4@fedoraproject.org> (raw)

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 ,

                 reply	other threads:[~2026-06-12 14:46 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=178127559851.1.13832168324256470512.rpms-gmsh-962940c2cbc4@fedoraproject.org \
    --to=manisandro@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