
{"id":43094,"date":"2022-09-09T16:28:52","date_gmt":"2022-09-09T16:28:52","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43094"},"modified":"2023-12-20T07:30:27","modified_gmt":"2023-12-20T07:30:27","slug":"enable-wayland-firefox-chrome","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/09\/enable-wayland-firefox-chrome\/","title":{"rendered":"Enable Wayland Support for Firefox\/Chrome in Ubuntu 22.04 for Better Experience"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/wayland-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-43095\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/wayland-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/wayland-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/wayland-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/wayland-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/wayland-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/wayland-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Running Ubuntu 22.04 with the default Wayland session? You can switch your web browser&#8217;s backend to get even faster and smoother experience.<\/p>\n<p>Firefox, Google Chrome and Chromium based web browsers do have native Wayland support, but they still use X11 as backend in Ubuntu desktop.<\/p>\n<p>Since Ubuntu 22.04 by default logs into Wayland session, user can also change the web browser&#8217;s backend to get faster and smoother browsing experiences. I didn&#8217;t run any benchmark. But after switching to Wayland, my browser now has:<\/p>\n<ul>\n<li><b>obviously better touchpad scrolling<\/b><\/li>\n<li><b>2-finger spread\/pinch gestures to zoom in\/out<\/b><\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/firefox-spread.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-43096\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/firefox-spread.gif\" alt=\"\" width=\"600\" height=\"387\" \/><\/a><\/p>\n<h3>Enable Wayland for Chrome\/Chromium<\/h3>\n<p>For Google Chrome, Chromium and their based web browsers, e.g., Edge, Vivaldi, just type <b>chrome:\/\/flags\/<\/b> in address bar and hit Enter.<\/p>\n<p>When the page opens, search for <b>Preferred Ozone platform<\/b> and use the dropdown menu to set it value to &#8220;<i>Wayland<\/i>&#8220;. Finally, click &#8220;Relaunch&#8221; button to apply change by restarting the web browser.<\/p>\n<div id=\"attachment_43097\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/chrome-waylandsupport.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-43097\" class=\"size-large wp-image-43097\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/chrome-waylandsupport-600x351.webp\" alt=\"\" width=\"600\" height=\"351\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/chrome-waylandsupport-600x351.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/chrome-waylandsupport-300x175.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/chrome-waylandsupport-768x449.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/chrome-waylandsupport.webp 1090w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-43097\" class=\"wp-caption-text\">Chrome enable wayland<\/p><\/div>\n<h3>Native Wayland for Firefox<\/h3>\n<p>Since Firefox 121.0, it uses Wayland by default if available, but NOT for pre-installed Firefox Snap package in my case.<\/p>\n<p><b>To enable it for Snap package<\/b>, either open terminal and start Firefox with Wayland from terminal:<\/p>\n<pre>env MOZ_ENABLE_WAYLAND=1 \/snap\/bin\/firefox<\/pre>\n<p><b>Or<\/b>, open &#8220;Files&#8221; (Nautilus file browser), press <b>Ctrl+H<\/b> then find out and edit the <b>.profile<\/b> file.<\/p>\n<p>When the file opens in text editor, add the line below in the end and save it.<\/p>\n<pre>export MOZ_ENABLE_WAYLAND=1<\/pre>\n<p>To apply the change, you need to log out and back in.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/export-moz-wayland.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/export-moz-wayland-600x395.webp\" alt=\"\" width=\"600\" height=\"395\" class=\"aligncenter size-large wp-image-44944\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/export-moz-wayland-600x395.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/export-moz-wayland-300x197.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/export-moz-wayland-768x505.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/export-moz-wayland-1320x869.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/09\/export-moz-wayland.webp 1486w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Running Ubuntu 22.04 with the default Wayland session? You can switch your web browser&#8217;s backend to get even faster and smoother experience. Firefox, Google Chrome and Chromium based web browsers do have native Wayland support, but they still use X11 as backend in Ubuntu desktop. Since Ubuntu 22.04 by default logs into Wayland session, user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":43095,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[693],"class_list":["post-43094","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-wayland"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=43094"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43094\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/43095"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=43094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}