Changeset 8548
- Timestamp:
- 10/03/09 02:40:39 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/script/padre (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/script/padre
r8516 r8548 33 33 my $HOME = undef; 34 34 my $session = undef; 35 my $DESKTOP = undef; 35 36 my $getopt = Getopt::Long::GetOptions( 36 37 'help' => \$USAGE, 37 38 'home=s' => \$HOME, 38 39 'session=s' => \$session, 40 'desktop' => \$DESKTOP, 39 41 'version' => \$VERSION, 40 42 ); … … 72 74 } 73 75 76 if($DESKTOP) { 77 if($^O eq 'MSWin32') { 78 require File::Temp; 79 my ( $temp, $tempfile ) = File::Temp::tempfile(); 80 print $temp <<'CODE'; 81 ' Create a Padre shortcut on the current user's desktop 82 Set shell = CreateObject("WScript.Shell") 83 desktop = shell.SpecialFolders("Desktop") 84 Set shortcut = shell.CreateShortcut(desktop & "\Padre.lnk") 85 shortcut.Description = "Padre - The Perl IDE" 86 shortcut.TargetPath = "C:\strawberry\perl\bin\padre.exe" 87 shortcut.WorkingDirectory = "c:\strawberry\perl\bin" 88 shortcut.Save 89 CODE 90 close $temp; 91 system( qq{wscript "$tempfile"} ); 92 } else { 93 warn "--desktop not implemented for " . $^O . "\n"; 94 } 95 exit(1); 96 } 97 98 74 99 my $app = Padre->new(%opts); 75 100 unless ($app) {
Note: See TracChangeset
for help on using the changeset viewer.
