Merge ede8bf5bd7
This commit is contained in:
commit
b0422d6a7f
@ -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
|
||||||
]
|
]
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user