File: 2100-run_single-instance.patch

package info (click to toggle)
freecad 1.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 464,352 kB
  • sloc: cpp: 931,303; python: 587,869; xml: 103,037; ansic: 9,568; fortran: 3,878; sh: 715; lex: 699; javascript: 311; yacc: 271; makefile: 120
file content (23 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Change XDG desktop entry to only run single instance of FreeCAD.
 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: 2024-12-21 (tobi@debian.org)
---
--- a/src/XDGData/org.freecad.FreeCAD.desktop
+++ b/src/XDGData/org.freecad.FreeCAD.desktop
@@ -14,7 +14,7 @@
 GenericName[ko]=CAD 응용프로그램
 GenericName[pl]=Aplikacja CAD
 GenericName[ru]=Система автоматизированного проектирования
-Exec=FreeCAD - --single-instance %F
+Exec=/usr/bin/freecad - --single-instance %F
 Terminal=false
 Type=Application
 Icon=org.freecad.FreeCAD