AbstractOperatingSystem.st
branchjv
changeset 17795 569eec7576f1
parent 17780 b6e42c92eba0
child 17807 06cc6c49e291
equal deleted inserted replaced
17794:da075fbea903 17795:569eec7576f1
  3280 
  3280 
  3281     ^ self subclassResponsibility
  3281     ^ self subclassResponsibility
  3282 !
  3282 !
  3283 
  3283 
  3284 getHostName
  3284 getHostName
  3285     "return the hostname we are running on - if there is
  3285     "return the hostname we are running on - 
  3286      a HOST environment variable, we are much faster here ...
  3286      a fully qalified hostname at best.
       
  3287 
  3287      Notice:
  3288      Notice:
  3288         not all systems support this; on some, 'unknown' is returned."
  3289         not all systems support this; on some, 'unknown' is returned."
  3289 
  3290 
  3290     self subclassResponsibility
  3291     self subclassResponsibility
  3291 !
  3292 !
  5520 
  5521 
  5521     self subclassResponsibility
  5522     self subclassResponsibility
  5522 ! !
  5523 ! !
  5523 
  5524 
  5524 !AbstractOperatingSystem class methodsFor:'users & groups'!
  5525 !AbstractOperatingSystem class methodsFor:'users & groups'!
       
  5526 
       
  5527 getApplicationDataDirectoryFor:appName
       
  5528     "return the directory, where user-and-application-specific private files are to be
       
  5529      located (ini-files, preferences etc.).
       
  5530      Under windows, something like 'C:\Users\Administrator\AppData\Roaming\<appName>'
       
  5531      is returned, here, the fallback ~/.<appName> is returned.
       
  5532      Notice that only the name is returned; the directory is not guaranteed to exist."
       
  5533 
       
  5534     "{ Pragma: +optSpace }"
       
  5535 
       
  5536     ^ self getHomeDirectory asFilename constructString:('.',appName)
       
  5537 
       
  5538     "
       
  5539      OperatingSystem getApplicationDataDirectoryFor:'expecco'  
       
  5540     "
       
  5541 
       
  5542     "Created: / 29-07-2010 / 12:07:25 / sr"
       
  5543 !
  5525 
  5544 
  5526 getDesktopDirectory
  5545 getDesktopDirectory
  5527     "{ Pragma: +optSpace }"
  5546     "{ Pragma: +optSpace }"
  5528 
  5547 
  5529     "return the name of the users desktop directory.
  5548     "return the name of the users desktop directory.
  6932 ! !
  6951 ! !
  6933 
  6952 
  6934 !AbstractOperatingSystem class methodsFor:'documentation'!
  6953 !AbstractOperatingSystem class methodsFor:'documentation'!
  6935 
  6954 
  6936 version
  6955 version
  6937     ^ '$Id: AbstractOperatingSystem.st 10544 2010-07-12 16:20:36Z vranyj1 $'
  6956     ^ '$Id: AbstractOperatingSystem.st 10564 2010-08-10 08:55:15Z vranyj1 $'
  6938 !
  6957 !
  6939 
  6958 
  6940 version_CVS
  6959 version_CVS
  6941     ^ 'Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.197 2010/03/30 13:50:30 stefan Exp '
  6960     ^ 'Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.199 2010/07/29 10:14:05 sr Exp '
  6942 !
  6961 !
  6943 
  6962 
  6944 version_SVN
  6963 version_SVN
  6945     ^ '$Id: AbstractOperatingSystem.st 10544 2010-07-12 16:20:36Z vranyj1 $'
  6964     ^ '$Id: AbstractOperatingSystem.st 10564 2010-08-10 08:55:15Z vranyj1 $'
  6946 ! !
  6965 ! !
  6947 
  6966 
  6948 AbstractOperatingSystem initialize!
  6967 AbstractOperatingSystem initialize!
  6949 
  6968 
  6950 
  6969 
  6951 
  6970 
       
  6971