Open euandekock opened 5 years ago
Steps to Reproduce:
1.Install Azure Data Studio 2.Run Azure Data Studio
This is a very annoying behaviour as HTML files are not naturally associated with a database tool, and should remain associated with the default web browser.
More specifically, this doesn't just happen once after install, and you change it back and all is good -- it constantly overrides the setting every time you open ADS.
Each time I open Azure Data Studio I have to go back and change my default .html
association back to Sublime. This is very frustrating because I use tools that open .html temp files directly, and this workflow now no longer works because I always have to go back to digging for the file in /tmp
manually.
Can anyone give insight on what files might need to be changed or what's at play? I don't know the components of the system that trigger this change, but it seems very easy to reproduce, and it's frustrating that this keeps getting punted to later releases.
My suspicion is that the fix lies somewhere in the files in or around one of these:
https://github.com/Microsoft/azuredatastudio/blob/master/resources/linux/debian/postinst.template
I have a file ~/.config/mimeapps.list
which is where my application Open With preferences get defined from nautilus > right click > Properties > Open With menu.
If I set HTML document
to Sublime Text, I see an entry:
text/html=sublime-text_subl.desktop
The next time I open Azure Data Studio, it is reliably overwritten to:
text/html=azuredatastudio.desktop
Ubuntu 18.04.1 LTS Azure Data Studio 1.3.8 2019-01-08
@ttilberg this sounds like behavior we "inherited" from the VS Code fork or other upstream dependency (i.e. our team didn't write code to do this). I'll take a look and try to see what's going on here.
@kburtram In case this is helpful, I also have vscode installed, and do not experience the same issue there. I know that doesn't guarantee anything, but it might give you less work in identifying the cause.
Good to see I'm not the only one experiencing this issue. In my case it's .jsp pages being opened by ADS while it should be in the browser to display the help from Eclipse based applications.
Steps to Reproduce:
1.Install Azure Data Studio 2.Run Azure Data Studio
2 new lines have been added:
This is a very annoying behaviour as HTML files are not naturally associated with a database tool, and should remain associated with the default web browser.