Skip to content

Commit

Permalink
Add flatpak support
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayBox committed Jan 10, 2022
1 parent 0405aff commit f7150bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f7150bc

Please sign in to comment.