- Timestamp:
- Dec 10, 2016, 4:20:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/UCommon.pas
r490 r492 6 6 7 7 uses 8 {$IFDEF Windows}Windows,{$ENDIF} 8 {$ifdef Windows}Windows,{$endif} 9 {$ifdef Linux}baseunix,{$endif} 9 10 Classes, SysUtils, StrUtils, Dialogs, Process, LCLIntf, 10 11 FileUtil; //, ShFolder, ShellAPI; … … 305 306 end; 306 307 end; 308 {$endif} 307 309 308 310 function ComputerName: string; … … 324 326 {$endif} 325 327 {$ifdef unix} 326 begin 327 Result := GetHostName; 328 var 329 Name: UtsName; 330 begin 331 fpuname(Name); 332 Result := Name.Nodename; 328 333 end; 329 334 {$endif} 330 335 336 {$ifdef windows} 331 337 function LoggedOnUserNameEx(Format: TUserNameFormat): string; 332 338 const … … 443 449 444 450 procedure OpenWebPage(URL: string); 445 var446 Process: TProcess;447 Browser, Params: string;448 451 begin 449 452 OpenURL(URL); 450 {try451 Process := TProcess.Create(nil);452 Browser := '';453 //FindDefaultBrowser(Browser, Params);454 //Process.Executable := Browser;455 //Process.Parameters.Add(Format(Params, [ApplicationInfo.HomePage]);456 Process.CommandLine := 'cmd.exe /c start ' + URL;457 Process.Options := [poNoConsole];458 Process.Execute;459 finally460 Process.Free;461 end;}462 453 end; 463 454
Note:
See TracChangeset
for help on using the changeset viewer.