Skip to content

Commit 641414d

Browse files
committed
Revert "Use appStoreReceiptURL to determine if running from store."
This reverts commit 0b78a6f
1 parent 377bbbf commit 641414d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

core/dylib/src/main/java/ch/cyberduck/core/preferences/ApplicationPreferences.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* GNU General Public License for more details.
1616
*/
1717

18-
import ch.cyberduck.binding.foundation.NSBundle;
1918
import ch.cyberduck.core.ApplescriptTerminalService;
2019
import ch.cyberduck.core.Factory;
2120
import ch.cyberduck.core.IOKitSleepPreventer;
@@ -124,10 +123,8 @@ protected void setFactories() {
124123
this.setDefault("factory.hardwareaddress.class", IOKitHardwareAddress.class.getName());
125124
this.setDefault("factory.pasteboardservice.class", WorkspacePasteboardService.class.getName());
126125

127-
if(null != NSBundle.mainBundle().appStoreReceiptURL()) {
128-
if(null != NSBundle.mainBundle().appStoreReceiptURL().fileReferenceURL()) {
129-
this.setDefault("factory.licensefactory.class", ReceiptFactory.class.getName());
130-
}
126+
if(null == this.getDefault("SUExpectsDSASignature")) {
127+
this.setDefault("factory.licensefactory.class", ReceiptFactory.class.getName());
131128
}
132129
}
133130
}

0 commit comments

Comments
 (0)