<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Chalist</title>
    <description>The latest articles on DEV Community by Chalist (@chalist).</description>
    <link>https://dev.to/chalist</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F228273%2Ff7973933-c090-49a4-95a0-9907930c836e.jpeg</url>
      <title>DEV Community: Chalist</title>
      <link>https://dev.to/chalist</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chalist"/>
    <language>en</language>
    <item>
      <title>Changing default application</title>
      <dc:creator>Chalist</dc:creator>
      <pubDate>Sun, 12 May 2024 17:44:47 +0000</pubDate>
      <link>https://dev.to/chalist/changing-default-application-j01</link>
      <guid>https://dev.to/chalist/changing-default-application-j01</guid>
      <description>&lt;p&gt;Changing default application is so easy in Arch-based Linux.&lt;/p&gt;

&lt;p&gt;Maybe work for other distros.&lt;/p&gt;

&lt;p&gt;Just open this file with your text editor:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;~/.local/share/applications/mimeapps.list&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Add your mime type and default application. For example, for URLs you can use these lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Default Applications]

x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Finding mime-type
&lt;/h1&gt;

&lt;p&gt;Finding any file's mime type is easy.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you use linux, you can use &lt;code&gt;file&lt;/code&gt; command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;file &lt;span class="nt"&gt;--mime-type&lt;/span&gt; data.json 
data.json: application/json

&lt;span class="nv"&gt;$ &lt;/span&gt;file &lt;span class="nt"&gt;--mime-type&lt;/span&gt; w1.png                             
w1.png: image/png

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or you can use &lt;code&gt;-i&lt;/code&gt; switch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;file &lt;span class="nt"&gt;-i&lt;/span&gt; w1.png         
w1.png: image/png&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;binary
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Also you can use online applications. For example &lt;a href="https://mimetype.io/"&gt;https://mimetype.io/&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;search file extension in the top menu search box or upload your file:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwbdktm5tmb4np04rhgmm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwbdktm5tmb4np04rhgmm.png" alt="Image description" width="800" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>archlinux</category>
    </item>
  </channel>
</rss>
