diff --git a/main.go b/main.go index 80ce805..bcb660c 100644 --- a/main.go +++ b/main.go @@ -80,6 +80,11 @@ func main() { execArgs = []string{"polymc", "--import", pack} iconPath = home + "/.local/share/polymc/icons/" + addonInfo.Name + + err = exec.Command("flatpak", "info", "org.polymc.PolyMC").Run() + if err == nil { + execArgs = []string{"flatpak", "run", "org.polymc.PolyMC", "--import", pack} + } case "windows": executable, err := os.Executable() if err != nil {