Skip to content

Commit

Permalink
Set linux icon and program name
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed May 15, 2024
1 parent f1ad846 commit 48b3058
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
"github.com/wailsapp/wails/v2/pkg/options/linux"

"github.com/satisfactorymodding/SatisfactoryModManager/backend"
"github.com/satisfactorymodding/SatisfactoryModManager/backend/app"
Expand All @@ -35,6 +36,9 @@ import (
//go:embed all:frontend/build
var assets embed.FS

//go:embed build/appicon.png
var iconBytes []byte

var (
version = "dev"
commit = "unknown"
Expand Down Expand Up @@ -145,6 +149,10 @@ func main() {
backend.ProcessArguments(secondInstanceData.Args)
},
},
Linux: &linux.Options{
Icon: iconBytes,
ProgramName: "Satisfactory Mod Manager",
},
OnStartup: func(ctx context.Context) {
appCommon.AppContext = ctx

Expand Down

0 comments on commit 48b3058

Please sign in to comment.