-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from zweidenker/clean-startup
Trying to cleanup stuff from startup
- Loading branch information
Showing
3 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Class { | ||
#name : #SnapDeployment, | ||
#superclass : #Object, | ||
#category : #'SnapDump-Server' | ||
} | ||
|
||
{ #category : #decoration } | ||
SnapDeployment class >> closeMorphs [ | ||
World submorphs do: #delete | ||
|
||
] | ||
|
||
{ #category : #decoration } | ||
SnapDeployment class >> disableChangesLog [ | ||
ChangesLog reset. | ||
self | ||
removeFromStartup: SmalltalkImage | ||
] | ||
|
||
{ #category : #decoration } | ||
SnapDeployment class >> disableEpicea [ | ||
EpMonitor current disable. | ||
self | ||
removeFromStartup: EpLostChangesDetector; | ||
removeFromStartup: OmDeferrer; | ||
removeFromStartup: OmSessionStore | ||
|
||
] | ||
|
||
{ #category : #decoration } | ||
SnapDeployment class >> disableFreeType [ | ||
FreeTypeSystemSettings loadFt2Library: false. | ||
self | ||
removeFromStartup: FreeTypeCache; | ||
removeFromStartup: FreeTypeSettings; | ||
removeFromStartup: LogicalFont; | ||
removeFromStartup: StrikeFont | ||
|
||
|
||
] | ||
|
||
{ #category : #decoration } | ||
SnapDeployment class >> disableIceberg [ | ||
self removeFromStartup: LGitLibrary | ||
|
||
] | ||
|
||
{ #category : #decoration } | ||
SnapDeployment class >> prepare [ | ||
self closeMorphs. | ||
self disableEpicea. | ||
self disableFreeType. | ||
self disableIceberg | ||
|
||
] | ||
|
||
{ #category : #decoration } | ||
SnapDeployment class >> removeFromStartup: aClass [ | ||
SessionManager default unregisterClassNamed: aClass name | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : #SnapDump } | ||
|
||
{ #category : #'*SnapDump-Server' } | ||
SnapDump class >> prepareForDeployment [ | ||
^ SnapDeployment prepare | ||
] |