OS X Java .app bundle cannot open other apps?

前端 未结 2 2010
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-28 11:52

I\'ve written a Java SWT application for OS X, exported it as a .jar and bundled it into .app. Everything works just as expected except for a critical part within my app; it req

2条回答
  •  佛祖请我去吃肉
    2021-01-28 12:04

    If steam: is a registered URL type, you can use org.eclipse.swt.program.Program#launch(String). For example:

    org.eclipse.swt.program.Program.launch("steam://rungameid/57300//");

提交回复
热议问题