Skip to content

Commit f7150bc

Browse files
committed
Add flatpak support
1 parent 0405aff commit f7150bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

+5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ func main() {
8080

8181
execArgs = []string{"polymc", "--import", pack}
8282
iconPath = home + "/.local/share/polymc/icons/" + addonInfo.Name
83+
84+
err = exec.Command("flatpak", "info", "org.polymc.PolyMC").Run()
85+
if err == nil {
86+
execArgs = []string{"flatpak", "run", "org.polymc.PolyMC", "--import", pack}
87+
}
8388
case "windows":
8489
executable, err := os.Executable()
8590
if err != nil {

0 commit comments

Comments
 (0)