<?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: Nishan Bista</title>
    <description>The latest articles on DEV Community by Nishan Bista (@nishan_bista).</description>
    <link>https://dev.to/nishan_bista</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%2F1733897%2Fd8629d16-3a89-4060-9cc2-4fa0e7fb7918.png</url>
      <title>DEV Community: Nishan Bista</title>
      <link>https://dev.to/nishan_bista</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nishan_bista"/>
    <language>en</language>
    <item>
      <title>UI/Text Blur Issues with Electron-Based Applications (e.g., Spotify, Discord) on Wayland</title>
      <dc:creator>Nishan Bista</dc:creator>
      <pubDate>Wed, 30 Oct 2024 18:57:50 +0000</pubDate>
      <link>https://dev.to/nishan_bista/uitext-blur-issues-with-electron-based-applications-eg-spotify-discord-on-wayland-546c</link>
      <guid>https://dev.to/nishan_bista/uitext-blur-issues-with-electron-based-applications-eg-spotify-discord-on-wayland-546c</guid>
      <description>&lt;p&gt;This article will help you to solve:&lt;br&gt;
&lt;code&gt;blur app problem in hyprland&lt;br&gt;
 blur app problem in wayland&lt;br&gt;
 discord, spotify blur problem in wayland based compositor&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7nrg39gwf6lhmgfot49n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7nrg39gwf6lhmgfot49n.png" alt="Discord blurry text, ui, icons image" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
We may have faced problem where our apps like Discord, Postman, Spotify etc apps UI and text are blurry. This problem is caused by electron apps  not using wayland protocol natively although they support it. &lt;/p&gt;

&lt;p&gt;To fix this it is very simple follow these 3 steps:&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;First navigate to:&lt;/strong&gt;
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /usr/share/applications
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This directory will have many &lt;code&gt;.desktop files&lt;/code&gt;, we need to open the one's that we need to fix for example &lt;strong&gt;&lt;em&gt;discord.desktop&lt;/em&gt;&lt;/strong&gt;.&lt;br&gt;
We can open it using our favorite text editor, for now i'll be using &lt;code&gt;neovim&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;Open &lt;code&gt;discord.desktop&lt;/code&gt; with nvim:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;we'll need root permission to modify these files&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo nvim discord.desktop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;On this line where i've marked:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2fg4qsp8tu3p2lo1xziu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2fg4qsp8tu3p2lo1xziu.png" alt="discord.desktop" width="800" height="154"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Add this line of code:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;--enable-features=UseOzonePlatform --ozone-platform=wayland
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwucr3l85msujjwq4a76e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwucr3l85msujjwq4a76e.png" alt="discord.desktop" width="800" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, Save the file and restart application. BOOM the problem is solved!!&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What these commands(arguments) that i added do?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;--enable-features=UseOzonePlatform&lt;/code&gt;:this enables the Ozone platform, which is an abstraction layer for handling different window systems (like X11 and Wayland) in Electron-based applications.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;--ozone-platform=wayland&lt;/code&gt;: this will direct the application to use the Wayland display server protocol for rendering, instead of the traditional X11.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Thankyou! May this helped you.&lt;/strong&gt;
&lt;/h2&gt;

</description>
      <category>blurapplications</category>
      <category>wayland</category>
      <category>hyprland</category>
      <category>spotify</category>
    </item>
  </channel>
</rss>
