Project

General

Profile

Feature #696674

msys2: Run exes with path

Added by Marko Lindqvist about 1 year ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
Windows Installers
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Make .cmd files to look up exes with dynamic path instead of assuming that working directory is freeciv installation root. Running from other directories still won't really work for the reason that data files won't be found.

0017-msys2-Run-exes-with-path.patch (4.21 KB) 0017-msys2-Run-exes-with-path.patch master Marko Lindqvist, 2017-09-12 10:37 PM
0008-msys2-Run-exes-with-path.patch (5.12 KB) 0008-msys2-Run-exes-with-path.patch S3_0 Marko Lindqvist, 2017-09-12 10:37 PM
0006-msys2-Run-exes-with-path.patch (4.99 KB) 0006-msys2-Run-exes-with-path.patch S2_6 Marko Lindqvist, 2017-09-12 10:38 PM
0001-msys2-Run-exes-with-path.patch (4.22 KB) 0001-msys2-Run-exes-with-path.patch master Marko Lindqvist, 2018-02-07 02:17 PM
0001-msys2-Run-exes-with-path.patch (5.14 KB) 0001-msys2-Run-exes-with-path.patch S3_0 Marko Lindqvist, 2018-02-07 02:18 PM
0001-msys2-Run-exes-with-path.patch (5 KB) 0001-msys2-Run-exes-with-path.patch S2_6 Marko Lindqvist, 2018-02-07 02:18 PM
0001-msys2-Run-exes-with-path.patch (4.32 KB) 0001-msys2-Run-exes-with-path.patch master Marko Lindqvist, 2018-02-17 02:24 AM
0001-msys2-Run-exes-with-path.patch (5.26 KB) 0001-msys2-Run-exes-with-path.patch S3_0 Marko Lindqvist, 2018-02-17 02:24 AM
0001-msys2-Run-exes-with-path.patch (5.13 KB) 0001-msys2-Run-exes-with-path.patch S2_6 Marko Lindqvist, 2018-02-17 02:24 AM

Related issues

Related to Freeciv - Task #696736: Windows start script issuesNew

Blocks Freeciv - Task #729132: Release 2.6.0-beta3Closed

History

#2 Updated by frank e about 1 year ago

  • Related to Task #696736: Windows start script issues added

#3 Updated by Jacob Nevins 9 months ago

Do you plan to commit this for beta2?

#4 Updated by Jacob Nevins 9 months ago

  • Target version changed from 2.6.0-beta2 to 2.6.0-beta3

#5 Updated by Marko Lindqvist 8 months ago

  • Status changed from Resolved to In Progress

Finally got this tested - doesn't work. I think it's because of whitespace in the path ("Program Files")

#7 Updated by Marko Lindqvist 8 months ago

  • Status changed from Resolved to In Progress

Clients do not launch, but DOS prompt opens instead. I don't get that "start" semantics.

#8 Updated by Marko Lindqvist 8 months ago

#9 Updated by frank e 8 months ago

Marko Lindqvist wrote:

I don't get that "start" semantics.

It's FUBAR, trying to map strings to options. You need a title string, and if you don't want it at least give an empty string: start "" ...

You might have a start directory (option /D), you can use /D . for the CWD, otherwise make sure to give it as string, e.g., /D "%CD%"

And put the actual path to the binary in double quotes, before the program parameters. Also see the start line in #696736

#11 Updated by Marko Lindqvist 8 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Patches with working syntax.

Also available in: Atom PDF