Make Stata default application of file type .dta (etc.)

DEnzmann

New Member
Joined
Feb 18, 2019
Messages
1
Reaction score
0
Credits
31
I asked this question already at https://ubuntuforums.org/showthread.php?t=2462987 , however those reading it either can't help or don't understand my question. Therefore I am trying it here. I am using Untuntu 18.04.5 LTS on an Intel® Core™ i7-9700 CPU @ 3.00GHz × 8 computer.

I installed the proprietary statistics program Stata (versions 16.1 and 17.0) (see https://www.stata.com/) that is available for MacOS, Linux, and Windows (I am not looking for an alternative). Stata knows different file types (.ado, .cht, .do, .dta, .smcl ...) and should start and open a file when you double-click on one of the files. However, this did not work for .ado, .do and .dta files (e.g. a .dta file is treated by the system as an .html file).

In the StataForum (of the Stata program) I asked how to solve the problem (see https://www.statalist.org/forums/fore-type-dta-etc), but all recommended actions fail. While every instance of the started program got an "active" icon in the bar of active programs immediately after the first installation of Stata, this has not been the case since I tried to use the Krusader file manager to link the .do extension with Stata to open this type permanently with Stata (right mouse click on the file → Open with → other → [select the program "/user/local/stata16/xstata-se" with the option "remember application association for all files of type ..."). Since then Stata does not start anymore with its original icon, but only shows the unspecific (generic) Linux icon in the bar of the active programs -- and all instances of Stata are then "collected" under this program, i.e. a new instance of Stata no longer has its own icon in the bar of active programs.

In the link above to the question in the StataForum I described the problem in more detail. To solve the problem, I used the "stata-integration.bin" script available on GitHub (see https://github.com/dirtyhawk/stata-integration). This initially solved the problem perfectly for Stata 16.1, but unfortunately the script does not work for Stata 17. So I tried again to link file extensions to Stata 17 with Krusader (as described above). But since then I got the old problem again, which cannot be solved by reinstalling, (and) restarting the system or running "stata-integration.bin" again.

As a Linux novice I am not able to configure mime types (which I assume to be responsible for my problem) accordingly. Is there a helping hand in this forum or do you have suggestions for another forum where I could ask for help?
 


Seems to me the icon for Stata is in the wrong place - you will have to search for it and copy it into the correct place which should be usr/share/icons/ then you can re-associate it or you can modify the current icon with your menu editor such as MenuLibre and point it to the application
 
If I read this correcctly, it seems all you need to do, is right click on the icon of the .ado or .dta files
and go to properties. Click on the "Open with" tab.
If your application isn't in the list, you can add it. Your file manager should save this for you
until you open these files again.
 

Staff online

Members online


Latest posts

Top