AbstractOperatingSystem.st
changeset 12971 8aa39c96e885
parent 12959 4fc6924e462f
child 13107 1bfbec80d8e3
equal deleted inserted replaced
12970:89cd540547d1 12971:8aa39c96e885
  5521 
  5521 
  5522     self subclassResponsibility
  5522     self subclassResponsibility
  5523 ! !
  5523 ! !
  5524 
  5524 
  5525 !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 !
  5526 
  5544 
  5527 getDesktopDirectory
  5545 getDesktopDirectory
  5528     "{ Pragma: +optSpace }"
  5546     "{ Pragma: +optSpace }"
  5529 
  5547 
  5530     "return the name of the users desktop directory.
  5548     "return the name of the users desktop directory.
  6933 ! !
  6951 ! !
  6934 
  6952 
  6935 !AbstractOperatingSystem class methodsFor:'documentation'!
  6953 !AbstractOperatingSystem class methodsFor:'documentation'!
  6936 
  6954 
  6937 version
  6955 version
  6938     ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.198 2010-07-23 09:48:39 stefan Exp $'
  6956     ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.199 2010-07-29 10:14:05 sr Exp $'
  6939 !
  6957 !
  6940 
  6958 
  6941 version_CVS
  6959 version_CVS
  6942     ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.198 2010-07-23 09:48:39 stefan Exp $'
  6960     ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.199 2010-07-29 10:14:05 sr Exp $'
  6943 ! !
  6961 ! !
  6944 
  6962 
  6945 AbstractOperatingSystem initialize!
  6963 AbstractOperatingSystem initialize!