Change XDG desktop entry to only run single instance of FreeCAD.
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sat, 25 May 2024 14:11:03 +0000 (16:11 +0200)
committerTobias Frost <tobi@debian.org>
Sat, 25 May 2024 14:11:03 +0000 (16:11 +0200)
This ensure invoking it to open different files only start the
program once, and load new files into the already running instance.
 Related to https://bugs.debian.org/1029846 and
 https://github.com/FreeCAD/FreeCAD/commit/c7a21ecbeecefe7c2dfc9e950b3d6bb42351d476 .

 Partly applied upstream.  Arguments applied, program name change is not.
Author: Håvard Flaget Aasen <haavard_aasen@yahoo.no>
Forwarded: https://github.com/FreeCAD/FreeCAD/pull/9855
Last-Update: 2021-12-26

Gbp-Pq: Name 1100-run_single-instance.patch

src/XDGData/org.freecadweb.FreeCAD.desktop

index 1058c1f73e107062ad9335f8284cf84474b37333..75295cd2683330795985c5abb888b35fa1207e98 100644 (file)
@@ -14,7 +14,7 @@ GenericName[de]=CAD-Anwendung
 GenericName[ko]=CAD 응용프로그램
 GenericName[pl]=Aplikacja CAD
 GenericName[ru]=Система автоматизированного проектирования
-Exec=FreeCAD %F
+Exec=/usr/bin/freecad - --single-instance %F
 Terminal=false
 Type=Application
 Icon=org.freecadweb.FreeCAD