{"id":154,"date":"2016-01-04T12:48:21","date_gmt":"2016-01-04T12:48:21","guid":{"rendered":"http:\/\/simon.aldrich.eu\/blog\/?p=154"},"modified":"2016-01-04T12:48:21","modified_gmt":"2016-01-04T12:48:21","slug":"telegram-tray-notification-icon-mate","status":"publish","type":"post","link":"https:\/\/simon.aldrich.cc\/blog\/2016\/01\/telegram-tray-notification-icon-mate\/","title":{"rendered":"Fixing Telegram&#8217;s notification icon in Mate"},"content":{"rendered":"<p>I like <a href=\"https:\/\/telegram.org\/\" target=\"_blank\">Telegram<\/a> a lot for cross platform instant messaging. It&#8217;s basically a WhatsApp clone but superior (for my purposes) because it has native (Windows, Mac &amp; Linux) clients as well as mobile apps.<\/p>\n<p>A while back I noticed that a Telegram update had caused the notification\/indicator icon to go missing on my <a href=\"https:\/\/ubuntu-mate.org\/\" target=\"_blank\">Ubuntu MATE<\/a> desktop:<\/p>\n<div id=\"attachment_155\" style=\"width: 264px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-155\" data-attachment-id=\"155\" data-permalink=\"https:\/\/simon.aldrich.cc\/blog\/2016\/01\/telegram-tray-notification-icon-mate\/no-icon\/\" data-orig-file=\"https:\/\/i0.wp.com\/simon.aldrich.cc\/blog\/wp-content\/uploads\/2016\/01\/no-icon.png?fit=254%2C100&amp;ssl=1\" data-orig-size=\"254,100\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"no-icon\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Telegram notification icon missing&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/simon.aldrich.cc\/blog\/wp-content\/uploads\/2016\/01\/no-icon.png?fit=254%2C100&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/simon.aldrich.cc\/blog\/wp-content\/uploads\/2016\/01\/no-icon.png?fit=254%2C100&amp;ssl=1\" class=\"size-full wp-image-155\" src=\"https:\/\/i0.wp.com\/simon.aldrich.eu\/blog\/wp-content\/uploads\/2016\/01\/no-icon.png?resize=254%2C100\" alt=\"Telegram notification icon missing\" width=\"254\" height=\"100\" \/><p id=\"caption-attachment-155\" class=\"wp-caption-text\">Telegram notification icon missing<\/p><\/div>\n<p>I eventually tracked the problem down to an environment variable: XDG_CURRENT_DESKTOP which Telegram uses to determine which desktop environment you&#8217;re running. In Mate it&#8217;s set to &#8220;MATE&#8221;, setting it to &#8220;GNOME&#8221; (which is what MATE actually is) works around the problem and the icon comes back:<\/p>\n<div id=\"attachment_156\" style=\"width: 261px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-156\" data-attachment-id=\"156\" data-permalink=\"https:\/\/simon.aldrich.cc\/blog\/2016\/01\/telegram-tray-notification-icon-mate\/icon\/\" data-orig-file=\"https:\/\/i0.wp.com\/simon.aldrich.cc\/blog\/wp-content\/uploads\/2016\/01\/icon.png?fit=251%2C100&amp;ssl=1\" data-orig-size=\"251,100\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"icon\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Telegram notification icon present&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/simon.aldrich.cc\/blog\/wp-content\/uploads\/2016\/01\/icon.png?fit=251%2C100&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/simon.aldrich.cc\/blog\/wp-content\/uploads\/2016\/01\/icon.png?fit=251%2C100&amp;ssl=1\" class=\"size-full wp-image-156\" src=\"https:\/\/i0.wp.com\/simon.aldrich.eu\/blog\/wp-content\/uploads\/2016\/01\/icon.png?resize=251%2C100\" alt=\"Telegram notification icon present\" width=\"251\" height=\"100\" \/><p id=\"caption-attachment-156\" class=\"wp-caption-text\">Telegram notification icon present<\/p><\/div>\n<p>I now use the following script to launch Telegram when I logon:<code><br \/>\n#!\/bin\/bash<br \/>\nexport XDG_CURRENT_DESKTOP=GNOME<br \/>\n${HOME}\/bin\/telegram\/Telegram \"$@\"<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like Telegram a lot for cross platform instant messaging. It&#8217;s basically a WhatsApp clone but superior (for my purposes) because it has native (Windows, Mac &amp; Linux) clients as well as mobile apps. A while back I noticed that a Telegram update had caused the notification\/indicator icon to go missing on my Ubuntu MATE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2Rw4E-2u","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/posts\/154"}],"collection":[{"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":1,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/posts\/154\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/simon.aldrich.cc\/blog\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}