@@ -262,6 +262,7 @@ enum GenericLinuxBundler: Bundler {
262
262
return createDesktopFile (
263
263
at: structure. desktopFile,
264
264
appName: context. appName,
265
+ iconName: structure. icon1024x1024. deletingPathExtension ( ) . lastPathComponent,
265
266
appConfiguration: context. appConfiguration,
266
267
installedExecutableLocation: executableLocation
267
268
)
@@ -469,13 +470,16 @@ enum GenericLinuxBundler: Bundler {
469
470
/// - Parameters:
470
471
/// - desktopFile: The desktop file to create.
471
472
/// - appName: The app's name.
473
+ /// - iconName: The name of the icon (the icon's file name without the
474
+ /// extension).
472
475
/// - appConfiguration: The app's configuration.
473
476
/// - installedExecutableLocation: The location the the executable will end
474
477
/// up at on disk once installed.
475
478
/// - Returns: If an error occurs, a failure is returned.
476
479
private static func createDesktopFile(
477
480
at desktopFile: URL ,
478
481
appName: String ,
482
+ iconName: String ,
479
483
appConfiguration: AppConfiguration . Flat ,
480
484
installedExecutableLocation: URL
481
485
) -> Result < Void , GenericLinuxBundlerError > {
@@ -489,7 +493,7 @@ enum GenericLinuxBundler: Bundler {
489
493
( " Name " , appName) ,
490
494
( " Comment " , " " ) ,
491
495
( " Exec " , " \( escapedExecPath) %U " ) ,
492
- ( " Icon " , appName ) ,
496
+ ( " Icon " , iconName ) ,
493
497
( " Terminal " , " false " ) ,
494
498
( " Categories " , " " ) ,
495
499
]
0 commit comments