diff --git a/Makefile b/Makefile index 2ff51b3..83d4da2 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ include theos/makefiles/common.mk TOOL_NAME = open open_FILES = open.m -open_PRIVATE_FRAMEWORKS = SpringBoardServices +open_PRIVATE_FRAMEWORKS = SpringBoardServices MobileCoreServices open_CODESIGN_FLAGS = -SEntitlements.plist +open_FRAMEWORKS = UIKit include $(THEOS_MAKE_PATH)/tool.mk diff --git a/control b/control index d0da013..c3dc8a3 100644 --- a/control +++ b/control @@ -1,5 +1,5 @@ Package: com.conradkramer.open -Version: 1.1.1 +Version: 1.1.2 Architecture: iphoneos-arm Maintainer: BigBoss Author: Conrad Kramer diff --git a/open.m b/open.m index bb2b139..860b8f2 100644 --- a/open.m +++ b/open.m @@ -1,5 +1,6 @@ #include #include +#include #ifndef SPRINGBOARDSERVICES_H_ extern int SBSLaunchApplicationWithIdentifier(CFStringRef identifier, Boolean suspended); @@ -23,6 +24,13 @@ int main(int argc, char **argv, char **envp) if (ret != 0) { fprintf(stderr, "Couldn't open application: %s. Reason: %i, ", argv[1], ret); CFShow(SBSApplicationLaunchingErrorString(ret)); + + NSURL *url = [NSURL URLWithString:(NSString*)identifier]; + if (![[LSApplicationWorkspace defaultWorkspace] openURL:url]) { + fprintf(stderr, "openURL %s also failed.\n", [[url absoluteString] UTF8String]); + } else { + ret = 0; + } } CFRelease(identifier); diff --git a/theos b/theos deleted file mode 160000 index a05354a..0000000 --- a/theos +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a05354a7b9839a5dce48f7c07114f30dd195b537 diff --git a/theos b/theos new file mode 120000 index 0000000..e30945d --- /dev/null +++ b/theos @@ -0,0 +1 @@ +/opt/theos \ No newline at end of file