Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
Python-3.10.14 /
Mac /
PythonLauncher /
Delete
Unzip
Name
Size
Permission
Date
Action
English.lproj
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
FileSettings.h
1.85
KB
-rw-r--r--
2024-03-19 22:46
FileSettings.m
9.44
KB
-rw-r--r--
2024-03-19 22:46
Info.plist.in
2.06
KB
-rw-r--r--
2024-03-19 22:46
Makefile.in
2.85
KB
-rw-r--r--
2024-03-19 22:46
MyAppDelegate.h
290
B
-rw-r--r--
2024-03-19 22:46
MyAppDelegate.m
2.63
KB
-rw-r--r--
2024-03-19 22:46
MyDocument.h
958
B
-rw-r--r--
2024-03-19 22:46
MyDocument.m
4.54
KB
-rw-r--r--
2024-03-19 22:46
PreferencesWindowController.h
1.02
KB
-rw-r--r--
2024-03-19 22:46
PreferencesWindowController.m
2.93
KB
-rw-r--r--
2024-03-19 22:46
doscript.h
228
B
-rw-r--r--
2024-03-19 22:46
doscript.m
1.68
KB
-rw-r--r--
2024-03-19 22:46
factorySettings.plist
2.63
KB
-rw-r--r--
2024-03-19 22:46
main.m
340
B
-rw-r--r--
2024-03-19 22:46
Save
Rename
#import "MyAppDelegate.h" #import "PreferencesWindowController.h" #import <Carbon/Carbon.h> #import <ApplicationServices/ApplicationServices.h> @implementation MyAppDelegate - (id)init { self = [super init]; initial_action_done = NO; should_terminate = NO; return self; } - (IBAction)showPreferences:(id)sender { [PreferencesWindowController getPreferencesWindow]; } - (void)applicationDidFinishLaunching:(NSNotification *)notification { // Test that the file mappings are correct [self testFileTypeBinding]; // If we were opened because of a file drag or double-click // we've set initial_action_done in shouldShowUI // Otherwise we open a preferences dialog. if (!initial_action_done) { initial_action_done = YES; [self showPreferences: self]; } } - (BOOL)shouldShowUI { // if this call comes before applicationDidFinishLaunching: we // should terminate immediately after starting the script. if (!initial_action_done) should_terminate = YES; initial_action_done = YES; if( GetCurrentKeyModifiers() & optionKey ) return YES; return NO; } - (BOOL)shouldTerminate { return should_terminate; } - (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender { return NO; } - (void)testFileTypeBinding { NSURL *ourUrl; OSStatus err; FSRef appRef; NSURL *appUrl; static NSString *extensions[] = { @"py", @"pyw", @"pyc", NULL}; NSString **ext_p; int i; if ([[NSUserDefaults standardUserDefaults] boolForKey: @"SkipFileBindingTest"]) return; ourUrl = [NSURL fileURLWithPath: [[NSBundle mainBundle] bundlePath]]; for( ext_p = extensions; *ext_p; ext_p++ ) { err = LSGetApplicationForInfo( kLSUnknownType, kLSUnknownCreator, (CFStringRef)*ext_p, kLSRolesViewer, &appRef, (CFURLRef *)&appUrl); if (err || ![appUrl isEqual: ourUrl] ) { i = NSRunAlertPanel(@"File type binding", @"PythonLauncher is not the default application for all " \ @"Python script types. You should fix this with the " \ @"Finder's \"Get Info\" command.\n\n" \ @"See \"Changing the application that opens a file\" in " \ @"Mac Help for details.", @"OK", @"Don't show this warning again", NULL); if ( i == 0 ) { // Don't show again [[NSUserDefaults standardUserDefaults] setObject:@"YES" forKey:@"SkipFileBindingTest"]; } return; } } } @end