diff --git a/main.go b/main.go index f7ba87d..2001e39 100644 --- a/main.go +++ b/main.go @@ -53,9 +53,10 @@ func installLinux() { } // Write the application icon - iconDir := filepath.Join(home, ".local", "share", "icons", "hicolor", "512x512", "apps") + iconDir := filepath.Join(home, ".local", "share", "icons") os.MkdirAll(iconDir, 0755) - os.WriteFile(filepath.Join(iconDir, "goexplore.png"), icon, 0644) + iconPath := filepath.Join(iconDir, "goexplore.png") + os.WriteFile(iconPath, icon, 0644) // Write the desktop shortcut file appDir := filepath.Join(home, ".local", "share", "applications") @@ -63,10 +64,10 @@ func installLinux() { desktopContent := fmt.Sprintf(`[Desktop Entry] Name=GoExplore Exec=%s -Icon=goexplore +Icon=%s Type=Application Terminal=false -Categories=Utility;FileTools;`, targetExe) +Categories=Utility;FileTools;`, targetExe, iconPath) os.WriteFile(filepath.Join(appDir, "goexplore.desktop"), []byte(desktopContent), 0644) // Execute the newly installed binary and exit the current running process @@ -83,7 +84,7 @@ func main() { // Create application with options err := wails.Run(&options.App{ - Title: "goexplore", + Title: "GoExplore", Width: 1024, Height: 768, AssetServer: &assetserver.Options{ diff --git a/wails.json b/wails.json index 2a429eb..c8a8c34 100644 --- a/wails.json +++ b/wails.json @@ -1,6 +1,6 @@ { "$schema": "https://wails.io/schemas/config.v2.json", - "name": "goexplore", + "name": "GoExplore", "outputfilename": "goexplore", "frontend:install": "npm install", "frontend:build": "npm run build",