This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-11-03 20:08:33 -05:00
commit b0422d6a7f
2 changed files with 14 additions and 3 deletions

View File

@ -6,8 +6,11 @@ Class {
{ #category : #accessing } { #category : #accessing }
MiniDocs class >> appFolder [ MiniDocs class >> appFolder [
| tempFolder | | tempFolder userDataFolder |
tempFolder := FileLocator userData / 'Mutabit' / 'MiniDocs'. userDataFolder := Smalltalk os isWindows
ifTrue: [ FileLocator home / 'AppData' / 'Local' ]
ifFalse: [ FileLocator userData ].
tempFolder := userDataFolder / 'Mutabit' / 'MiniDocs'.
tempFolder exists ifFalse: [ tempFolder ensureCreateDirectory ]. tempFolder exists ifFalse: [ tempFolder ensureCreateDirectory ].
^ tempFolder ^ tempFolder
] ]

View File

@ -42,7 +42,15 @@ Nimble class >> installPackagesList [
{ #category : #accessing } { #category : #accessing }
Nimble class >> installed [ Nimble class >> installed [
| installed |
Smalltalk os isWindows
ifTrue: [ | process |
process := GtExternalProcessBuilder new
command: 'nimble.exe';
args: #('list' '--installed');
output.
^ process stdout lines ].
OSSUnixSubprocess new OSSUnixSubprocess new
command: 'nimble'; command: 'nimble';
arguments: #('list' '--installed'); arguments: #('list' '--installed');