@@ -210,7 +210,7 @@ int checkReadSettingsWithoutExpand()
210
210
CHECK_QSTRINGLIST (
211
211
appLauncherSettings.paths (/* expand= */ false ),
212
212
QStringList ()
213
- << " <APPLAUNCHER_DIR>/cow"
213
+ << " <APPLAUNCHER_DIR>/cow/<APPLAUNCHER_NAME> "
214
214
<< " /path/to/pig-<env:BOTH>"
215
215
<< " /path/to/<env:PET>"
216
216
);
@@ -238,6 +238,11 @@ int checkReadSettingsWithoutExpand()
238
238
" cat-and-<env:PET>"
239
239
);
240
240
241
+ CHECK_QSTRING (
242
+ appLauncherSettings.envVar (" PLACEHOLDER" , /* expand= */ false ),
243
+ " <APPLAUNCHER_DIR>-<APPLAUNCHER_NAME>"
244
+ );
245
+
241
246
#if defined(Q_OS_WIN32)
242
247
CHECK_QSTRING (
243
248
appLauncherSettings.envVar (" PYTHONPATH" , /* expand= */ false ),
@@ -285,7 +290,7 @@ int checkReadSettingsWithoutExpand()
285
290
CHECK_QSTRINGLIST (
286
291
pathsEnvVars.value (" PATH" ),
287
292
QStringList ()
288
- << " <APPLAUNCHER_DIR>/cow"
293
+ << " <APPLAUNCHER_DIR>/cow/<APPLAUNCHER_NAME> "
289
294
<< " /path/to/pig-<env:BOTH>"
290
295
<< " /path/to/<env:PET>"
291
296
<< " /path/to/libA"
@@ -296,7 +301,7 @@ int checkReadSettingsWithoutExpand()
296
301
CHECK_QSTRINGLIST (
297
302
pathsEnvVars.value (" PATH" ),
298
303
QStringList ()
299
- << " <APPLAUNCHER_DIR>/cow"
304
+ << " <APPLAUNCHER_DIR>/cow/<APPLAUNCHER_NAME> "
300
305
<< " /path/to/pig-<env:BOTH>"
301
306
<< " /path/to/<env:PET>"
302
307
);
@@ -355,7 +360,7 @@ int checkReadSettingsWithExpand()
355
360
CHECK_QSTRINGLIST (
356
361
appLauncherSettings.paths (),
357
362
QStringList ()
358
- << " /awesome/path/to/cow"
363
+ << " /awesome/path/to/cow/AwesomeApp "
359
364
<< " /path/to/pig-cat-and-dog"
360
365
<< " /path/to/dog"
361
366
);
@@ -383,6 +388,11 @@ int checkReadSettingsWithExpand()
383
388
" cat-and-dog"
384
389
);
385
390
391
+ CHECK_QSTRING (
392
+ appLauncherSettings.envVar (" PLACEHOLDER" ),
393
+ " /awesome/path/to-AwesomeApp"
394
+ );
395
+
386
396
#if defined(Q_OS_WIN32)
387
397
CHECK_QSTRING (
388
398
appLauncherSettings.envVar (" PYTHONPATH" ),
@@ -444,7 +454,7 @@ int checkReadSettingsWithExpand()
444
454
CHECK_QSTRINGLIST (
445
455
pathsEnvVars.value (" PATH" ),
446
456
QStringList ()
447
- << " /awesome/path/to/cow"
457
+ << " /awesome/path/to/cow/AwesomeApp "
448
458
<< " /path/to/pig-cat-and-dog"
449
459
<< " /path/to/dog"
450
460
<< " /path/to/libA"
@@ -455,7 +465,7 @@ int checkReadSettingsWithExpand()
455
465
CHECK_QSTRINGLIST (
456
466
pathsEnvVars.value (" PATH" ),
457
467
QStringList ()
458
- << " /awesome/path/to/cow"
468
+ << " /awesome/path/to/cow/AwesomeApp "
459
469
<< " /path/to/pig-cat-and-dog"
460
470
<< " /path/to/dog"
461
471
);
@@ -563,7 +573,7 @@ int checkReadAdditionalSettingsWithExpand()
563
573
<< " /awesome/path/to/fawn"
564
574
<< " /path/to/cat-and-dog"
565
575
<< " /path/to/Klimt"
566
- << " /awesome/path/to/cow"
576
+ << QString ( " /awesome/path/to/cow/%1 " ). arg (appName)
567
577
<< " /path/to/pig-cat-and-dog"
568
578
<< " /path/to/dog"
569
579
);
0 commit comments