Replacing WebBrowser by GoogleChrome as default document previsualizer, as there is improved support over Firefox as a default browser :-(

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-01-09 11:44:55 -05:00
parent 84591efdcc
commit f0c0a537a0
2 changed files with 13 additions and 1 deletions

View File

@ -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.
] ]

View 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' )
]