I am aware that you searched for Felix only. Then, this Equinox-only solution might not be useful. I leave it here, because someone else might stumble over this question and has Equinox running.
From any bundle and any framework, it might be difficult. If you use the org.eclipse.core.runtime.applications extension point, is should be easy. Precondition: You do NOT pass -console as Parameter.
public class Application implements IApplication {
@Override
public Object start(IApplicationContext context) throws Exception {
String[] args = (String[])context.getArguments().get("application.args");
// args.length == 0 if no arguments have been passed
}
}
Reference in plugin.xml
<plugin>
<extension
id="myApp"
point="org.eclipse.core.runtime.applications">
<application>
<run class="package.Application" />
</application>
</extension>
</plugin>