


As you can see above I have 2 apps associated, gedit and calibre, for. This is then used to perform another lookup to find out the list of applications that are associated with this mime-type. First I'm querying for the mime-type of a given file, xdg-mime query filetype tstfile.txt, which will return text/plain. $ xdg-mime query default $(xdg-mime query filetype tstfile.odt) How can I change the default app for all files of a particular file type through the Terminal in OS X Stack Exchange Network Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Not a dupe, even though I kind of answered it there. $ xdg-mime query default $(xdg-mime query filetype tstfile.txt) How can I change the default app for all files of a particular file type through the Terminal in OS X. You can use xdg-mime to query the system to find out what applications are associated to a given file type. Resulting in the file tstfile.odt being opened in Writer: Opening a LibreOffice Writer document: $ xdg-open tstfile.odt Resulting in the file tstfile.txt being opened in gedit: Select Startup and choose the Default profile that you prefer.
#CHANGE DEFAULT APP FOR ALL FILES OF PARTICULAR FILE TYPE THROUGH TERMINAL IN OS X? WINDOWS#
To change the default profile: Open Windows Terminal and go to the Settings UI window. Opening a text file: $ xdg-open tstfile.txt After installation, when you open Windows Terminal, it will start with the PowerShell command line as the default profile in the open tab. There isn't a command that I've ever seen that will act as "open with." but you can use the command xdg-open to open a given in the application that's associated with that particular type of file.
