Closed anshulbajpai closed 9 years ago
I'm assuming you've tried to it twice. I'm aware of an issue if your right click and open in browser it won't open the first time, but will work second time. Just wanted to double check.
I tried but no luck!
Damn, I'll setup Ubuntu 14.04 and check it out. Thanks for the reply.
Thanks
Also, what file are you trying to "Open in Browser" and do you have that file set as default to open with a browser? This will help me debug the issue. Thanks again.
HTML. But I tried other files as well, like js, shell but nothing worked.
What do you mean by --- "do you have that file set as default to open with a browser?"
You know when you set an application to open a file by default. For example make chrome the default application to open .html files.
Aah, got it. I haven't done that. I don't think it could be a reason because I tried with other files as well. Even .gitignore and that also didn't work.
Similar feature works in sublime on my machine for the same file.
On Mon, Aug 25, 2014 at 9:35 PM, magbicaleman notifications@github.com wrote:
You know when you set an application to open a file by default. For example make chrome the default application to open .html files.
— Reply to this email directly or view it on GitHub https://github.com/magbicaleman/open-in-browser/issues/1#issuecomment-53284917 .
Thanks, Anshul Bajpai India Cell : +919011923180
Give that a quick try, I got Ubuntu installed need to download Atom... etc.
So I figured out why, ubuntu uses xdg-open to open files and mac os system uses open in the terminal to open files with default application. I'm going to look into this and try to solve this.
Thanks for looking into it. Let me know when you release it.
On Mon, Aug 25, 2014 at 10:25 PM, magbicaleman notifications@github.com wrote:
So I figured out why, ubuntu uses xdg-open to open files and mac os system uses open in the terminal to open files with default application. I'm going to look into this and try to solve this.
— Reply to this email directly or view it on GitHub https://github.com/magbicaleman/open-in-browser/issues/1#issuecomment-53291187 .
Thanks, Anshul Bajpai India Cell : +919011923180
@anshulbajpai I just updated the package. I downloaded it to my Ubuntu 14 and it's working. Go to your Atom -> File -> Preferences and update the package.
Ok, I am seeing a different behaviour now. Html files are not opening at all. But, other files like .gitignore, .js and .json are now opening in sublime. I checked the default applications for such files are sublime in my machine. I didn't set it on my own though. For html, its chrome.
On Mon, Aug 25, 2014 at 11:06 PM, magbicaleman notifications@github.com wrote:
@anshulbajpai https://github.com/anshulbajpai I just updated the package. I downloaded it to my Ubuntu 14 and it's working. Go to your Atom -> File -> Preferences and update the package.
— Reply to this email directly or view it on GitHub https://github.com/magbicaleman/open-in-browser/issues/1#issuecomment-53297060 .
Thanks, Anshul Bajpai India Cell : +919011923180
Please excuse the stupid question, but is your .html file saved? Perhaps it's not using the file in memory but it's trying to open a file with an actual path.
Yes, its a saved file. I am accessing a unmodified versioned file. So its there :).
On Mon, Aug 25, 2014 at 11:30 PM, magbicaleman notifications@github.com wrote:
Please excuse the stupid question, but is your .html file saved? Perhaps it's not using the file in memory but it's trying to open a file with an actual path.
— Reply to this email directly or view it on GitHub https://github.com/magbicaleman/open-in-browser/issues/1#issuecomment-53301645 .
Thanks, Anshul Bajpai India Cell : +919011923180
On atom if you go to View -> Developers -> Toggle Developer Tools, then Open In Browser, the HTML file do you see any errors?
I'm able to open my .html file and it opens in FireFox, going to try Chrome now.
Tried that but no errors in console.
Although, I get this error when I open atom. I got this after clicking a warning icon in the bottom panel of atom.
Deprecated calls
On Mon, Aug 25, 2014 at 11:43 PM, magbicaleman notifications@github.com wrote:
On atom if you go to View -> Developers -> Toggle Developer Tools, then Open In Browser, the HTML file do you see any errors?
I'm able to open my .html file and it opens in FireFox, going to try Chrome now.
— Reply to this email directly or view it on GitHub https://github.com/magbicaleman/open-in-browser/issues/1#issuecomment-53304173 .
Thanks, Anshul Bajpai India Cell : +919011923180
Switch to FireFox, if you don't mind. It seems that Chrome does not like to be called through atom.io. I'm going to take a look at this.
Yep that worked. Opened in firefox. Can you fix it from chrome as well?
Also for any file that I want to access in browser, it should have browser as it's default application? Is it not possible to pass the filepath to default browser of machine?
On Mon, Aug 25, 2014 at 11:55 PM, magbicaleman notifications@github.com wrote:
Switch to FireFox, if you don't mind. It seems that Chrome does not like to be called through atom.io. I'm going to take a look at this.
— Reply to this email directly or view it on GitHub https://github.com/magbicaleman/open-in-browser/issues/1#issuecomment-53306274 .
Thanks, Anshul Bajpai India Cell : +919011923180
As of right now, the way that this package works is that it opens the file, the system then tells it, this is the default application, and then it opens it. It is not currently specific to any browser settings.
I'm not sure if I can fix Chrome, I'm definitely going to look into it. If you notice Chrome is different looking than other application at the top, the icons to minimize and close are on the right side, and have a different theme. All other applications are on the left side and have the same theme through out Ubuntu.
I'm not sure if the way atom access the terminal is a reason why Chrome is not opening through this method. Perhaps a security mechanism, but I'll look into it more.
@anshulbajpai this seems to be a Linux to Chrome issue.
https://productforums.google.com/forum/#!topic/chrome/bBSUEDtLBfA
http://ubuntuforums.org/showthread.php?t=1346956&page=2&s=3c79f568ce9097fb446308d3f85f5405
This is the error I'm getting back when I kill all the processes that are google chrome.
"Command failed: /bin/sh -c google-chrome http://google.com The setuid sandbox is not running as root. Common causes:
Does not work in ubuntu 14.04. Nothing opens in browser