Replacing WebBrowser by GoogleChrome as default document previsualizer, as there is improved support over Firefox as a default browser :-(
This commit is contained in:
parent
84591efdcc
commit
f0c0a537a0
@ -25,6 +25,8 @@ LePageHeaderBuilder >> addRefreshWebViewButton [
|
|||||||
icon: BrGlamorousVectorIcons refresh;
|
icon: BrGlamorousVectorIcons refresh;
|
||||||
action: [
|
action: [
|
||||||
self page asMarkdeep exportAsFileOn: (self page storage / self page markdeepFileName).
|
self page asMarkdeep exportAsFileOn: (self page storage / self page markdeepFileName).
|
||||||
WebBrowser openOn: self page localHostAddress ].
|
GoogleChrome openWindowOn: self page localHostAddress.
|
||||||
|
"TODO: If Chrome/Chromium are not installed, I should execute:"
|
||||||
|
"WebBrowser openOn: self page localHostAddress" ].
|
||||||
self toolbarElement addItem: newButton.
|
self toolbarElement addItem: newButton.
|
||||||
]
|
]
|
||||||
|
10
src/MiniDocs/UnixChromePlatform.extension.st
Normal file
10
src/MiniDocs/UnixChromePlatform.extension.st
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Extension { #name : #UnixChromePlatform }
|
||||||
|
|
||||||
|
{ #category : #'*MiniDocs' }
|
||||||
|
UnixChromePlatform class >> defaultExecutableLocations [
|
||||||
|
|
||||||
|
^ #( '/opt/google/chrome/chrome'
|
||||||
|
'/usr/bin/chromium-browser'
|
||||||
|
'/usr/local/share/chromium/chrome'
|
||||||
|
'/usr/bin/chromium' )
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user