PapirusDevelopmentTeam / papirus-icon-theme

Pixel perfect icon theme for Linux
https://git.io/papirus-icon-theme
GNU General Public License v3.0
6.68k stars 423 forks source link

[Icon request] Jira #2511

Open RainingComputers opened 3 years ago

RainingComputers commented 3 years ago

Hey, I want to use Linux Mint Web App Manager (https://blog.linuxmint.com/?p=3960) to setup a shortcut to Jira. The icon for Jira is not present.

varlesh commented 3 years ago

Usually we not support icons for web-pages

maxtron95 commented 3 years ago

@RainingComputers I'm curious of what the contents .desktop file of a web app shortcut created with the Web App Manager would look like. (I haven't set up a VM of the latest Linux Mint yet.)

RainingComputers commented 3 years ago

@creepertron95

[Desktop Entry]
Version=1.0
Name=Jira
Comment=Web App
Exec=sh -c 'XAPP_FORCE_GTKWINDOW_ICON=gnome-todo firefox --class WebApp-Jira0162 --profile /home/shnoo/.local/share/ice/firefox/Jira0162 --no-remote http://www.jira.com'
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/shnoo/.local/share/ice/icons/jira.svg
Categories=GTK;Network;
MimeType=text/html;text/xml;application/xhtml_xml;
StartupWMClass=WebApp-Jira0162
StartupNotify=true
X-WebApp-URL=http://www.jira.com
X-WebApp-Isolated=true

The web app manager either lets you choose your own icon or downloads the icon from the website or the favicon.

maxtron95 commented 3 years ago

It seems the icons generated by Webapp Manager/ICE are actually hardcoded. Maybe web-jira?

RainingComputers commented 3 years ago

@creepertron95 It does not always need to be hardcoded. Let's say if you create a shortcut to Instagram, web app manager automatically finds the icons from the current icon theme,

[Desktop Entry]
Version=1.0
Name=instagram
Comment=Web App
Exec=sh -c 'XAPP_FORCE_GTKWINDOW_ICON=instagram firefox --class WebApp-instagram6444 --profile /home/shnoo/.local/share/ice/firefox/instagram6444 --no-remote http://www.instagram.com'
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=instagram
Categories=GTK;Network;
MimeType=text/html;text/xml;application/xhtml_xml;
StartupWMClass=WebApp-instagram6444
StartupNotify=true
X-WebApp-URL=http://www.instagram.com
X-WebApp-Isolated=true
maxtron95 commented 3 years ago

I think it only does that for certain popular websites like YouTube or Facebook.

RainingComputers commented 3 years ago

@creepertron95 No, it does some pattern matching on the URL webapp-pattern-demo

maxtron95 commented 3 years ago

Interesting, so I think jira could actually work as an icon then.

giovannicardamone-facile commented 2 years ago

i am also interested in this