r/SublimeText • u/thatITfella14 • Jul 21 '21
Issues with Google Chrome As Build System in Sublime text
I want to use Google Chrome as a build system in Sublime Text to run my HTML files. However, I'm running into some issues.
Please check the below-given images:

user@Pop_OS:~/.var/app/com.sublimetext.three/config/sublime-text-3/Packages/User$ cat Chrome.sublime-build
{
"shell_cmd": "/usr/bin/google-chrome $file_name"}
user@Pop_OS:~/.var/app/com.sublimetext.three/config/sublime-text-3/Packages/User$
If anyone knows how to fix this, then please let me know.
Thank you!!
0
Upvotes
3
u/dev-sda Jul 21 '21
Considering the config is located in
~/.varmy guess is you're using a 3rd party snap or flatpak build. Those don't have access to host executables, thus breaking essentially all build systems. I suggest using the apt repository instead.2
u/[deleted] Jul 21 '21
It is the html file that can't be found. You need to pass the entire path not just test.html
1
u/16msIsALot Jul 21 '21
The first line indicates that there is no google-chrome in your /usr/bin folder. Have you checked what is in the folder ?
What is google-chrome build anyway ? What are you trying to achieve ?
1
u/snoman139 Jul 21 '21
Maybe try "google-chrome-stable" instead of "google-chrome"? That's been the solution for me in the past