Papirus-icon-theme: [Icon Request] Riot.im tray icon

Created on 15 May 2018  ·  36Comments  ·  Source: PapirusDevelopmentTeam/papirus-icon-theme

image
the tray icons look lovely but riot stand out a little bit! :)

thank you guys for the stuff you do!!

completed hardcoded panel

Most helpful comment

@redg3ar Congratulations!!! Yes, you right on DEB this located on:
/opt/Riot/resources/webapp/vector-icons/favicon.ico

All 36 comments

riot tray icon added, but empty now on Hardode Tray database

@SmartFinn Привет Сереж, хардкоде-трей походу заглох совсем. ППА не обновляется, пакета для 18.04 нет, реквесты висят, коммитов нет :(

@varlesh Привет. Рано хоронить, всего месяц коммитов не было. А PPA не обновляется потому что хотят уйти на packagecloud.

надо будет им PR накидать как-нить.
@SmartFinn Может подсобишь с автоматическим дейли-ппа им (если есть желание и время)?

Ты уже прост разобрался с рецептами, а они как я понял вручную все собирают

@varlesh не угадал, автоматически собирают hardcode-tray-packaging-daily и пакет для 18.04 есть.

@SmartFinn Да как-то странно, а почему пакеты для других релизов не обновлены?

там вообще версия 3.5.2.1, а актуальная 4.3

@varlesh

там вообще версия 3.5.2.1, а актуальная 4.3

вот в чем причина, импорт с GitHub сломан:

image

@SmartFinn понятно, отправил скрин майнтейнеру.
@redg3ar riot added now on hardcode-tray database. Please check it

On arch linux, hardcode tray does not detect and install. I am using "riot-desktop" package. The path that I believe the icon resides at is /usr/lib/riot/electron_app/img/riot.png, but i cant seem to get the "--path" and "--only" options to work. I have tried "--only" with "Riot Web", "Riot", and "riot.electron", but always get "No apps to fix".
I am using latest git package of papirus and hardcode-tray.

@redg3ar Aur-package use different install path. Please show screenshot /usr/share/webapps/riot

on DEB-package used:
/opt/Riot/resources/app/img/riot.png

i'm not understand why directories different on DEB and AUR package....
On AUR-package empty folder resources

Also you can try this config on hardcode-tray (but i'm not shure):

{
    "name": "Riot Web",
    "app_path": [
        "/opt/Riot/",
        "/usr/lib/riot/electron_app"
    ],
    "icons_path": [
        "/opt/Riot/resources/app/img/",
        "/usr/lib/riot/electron_app/img/"
    ],
    "icons": {
        "tray": {
            "original": "riot.png",
            "theme": "riot-tray"
        }
    }
}

located on /usr/share/hardcode-tray/database/riot.electron.json

Through some more debugging, I have found out where the icons truly lie. "Riot.png" briefly displays before the full app is loaded, when that occurs it is set to /usr/lib/riot/webapp/vector-icons/favicon.ico. On non arch systems the location might be different. Making an ico file with icoutil was successful. If ico files arent going to be supported by hardcode-tray then feel free to close this issue.

@redg3ar Ok, i think this need report to hardcode-tray

@redg3ar I'm now check this... but fail
ico not used:
image
Initially start png but after loading program - icon changed. AND I DON'T KNOW WHY (and what icon used)?!
image

@SmartFinn В чем косяк? Почему оно грузит хз какой значок?

also i'm found riot icons here:

/opt/Riot/resources/webapp/vector-icons/mstile-70x70.png
/opt/Riot/resources/webapp/vector-icons/favicon-96x96.png
/opt/Riot/resources/webapp/vector-icons/mstile-144x144.png
/opt/Riot/resources/webapp/vector-icons/mstile-150x150.png
/opt/Riot/resources/webapp/vector-icons/mstile-310x150.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon.png
/opt/Riot/resources/webapp/vector-icons/android-chrome-36x36.png
/opt/Riot/resources/webapp/vector-icons/android-chrome-48x48.png
/opt/Riot/resources/webapp/vector-icons/android-chrome-72x72.png
/opt/Riot/resources/webapp/vector-icons/android-chrome-96x96.png
/opt/Riot/resources/webapp/vector-icons/android-chrome-144x144.png
/opt/Riot/resources/webapp/vector-icons/android-chrome-192x192.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-57x57.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-60x60.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-72x72.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-76x76.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-114x114.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-120x120.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-144x144.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-152x152.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-180x180.png
/opt/Riot/resources/webapp/vector-icons/apple-touch-icon-precomposed.png

and here:

/opt/Riot/resources/webapp/img/icon-mx-user.svg
/opt/Riot/resources/webapp/img/search-icon-vector.svg
/opt/Riot/resources/webapp/themes/riot/img/logos/riot-logo.svg
/opt/Riot/resources/webapp/themes/riot/img/logos/riot-logo-1.svg
/opt/Riot/resources/webapp/themes/riot/img/logos/riot.im logo.svg
/opt/Riot/resources/webapp/themes/riot/img/logos/riot-im-logo-1.svg

what icon used?

for me it was /resources/webapp/vector-icons/favicon.ico not riot.ico

the icon changes because riot switches to webapp which can add a notification to the icon both on pc and browser, but it needs to use an ico to be compatible with a browser
however they still want an icon during startup and not a blank tray which is where riot.png is used

for me it was /resources/webapp/vector-icons/apple-touch-icon.png/favicon.ico not riot.ico

Ok, thx for info. I check this now

@redg3ar Congratulations!!! Yes, you right on DEB this located on:
/opt/Riot/resources/webapp/vector-icons/favicon.ico

@varlesh методом тыка получилось быстрее чем копанием в js коде :smile:

@redg3ar /resources/webapp/vector-icons/apple-touch-icon.png/favicon.ico - it's really full path?
i'm confused with AUR-package...
Please write where located PNG and ICO

@varlesh методом тыка получилось быстрее чем копанием в js коде smile

Я там код для винды ток нашел

@varlesh

Я там код для винды ток нашел

там if/else, для винды тянет ico, для других - png.

https://www.archlinux.org/packages/community/any/riot-desktop/ (riot-desktop):
riot.png = /usr/lib/riot/electron_app/img/riot.png
favicon.ico = /usr/share/webapps/riot/vector-icons/favicon.ico

will update with AUR version (riot-desktop-git) in 2 minutes, compiling

@bilelmoussaoui Bilal see... (with DEB-package tested on Ubuntu)

  • Initially program load PNG:

/opt/Riot/resources/app/img/riot.png

  • After load ICO:

/opt/Riot/resources/webapp/vector-icons/favicon.ico

I think config file looking as:

{
    "name": "Riot Web",
    "app_path": [
        "/opt/Riot/",
    ],
    "icons_path": [
        "/opt/Riot/resources/app/img/",
        "/opt/Riot/resources/webapp/vector-icons/"
    ],
    "icons": {
        "tray": {
            "original": "riot.png",
            "theme": "riot-tray"
        },
        "tray-ico": {
            "original": "favicon.ico",
            "theme": "riot-tray"
        }
    }
}

But program can not convert SVG to ICO (i make this manually on Gimp)

AUR version is the same locations.
For ico file, you can convert svg to png with RSVGConvert, etc and then use https://www.nongnu.org/icoutils/
OR
Use imagemagick
convert -density 384 icon.svg -define icon:auto-resize icon.ico
Density might need to be changed.

@redg3ar thx
@bilelmoussaoui
updated config with DEB+AUR (need add ICO support):

{
    "name": "Riot Web",
    "app_path": [
        "/opt/Riot/riot-web",
        "/usr/bin/riot-desktop"
    ],
    "icons_path": [
        "/opt/Riot/resources/app/img/",
        "/opt/Riot/resources/webapp/vector-icons/",
        "/usr/lib/riot/electron_app/img/",
        "/usr/share/webapps/riot/vector-icons/"
    ],
    "icons": {
        "tray": {
            "original": "riot.png",
            "theme": "riot-tray"
        },
        "tray-ico": {
            "original": "favicon.ico",
            "theme": "riot-tray"
        }
    }
}

@bilelmoussaoui
Summation info:

  • Exec path:
# on DEB
/opt/Riot/riot-web
# on ARCH
/usr/bin/riot-desktop
  • Initially program load PNG:
# on DEB
/opt/Riot/resources/app/img/riot.png
# on ARCH
/usr/lib/riot/electron_app/img/riot.png
  • After program load ICO:
# on DEB
/opt/Riot/resources/webapp/vector-icons/favicon.ico
# on ARCH
/usr/share/webapps/riot/vector-icons/favicon.ico

Example config (ICO format not converting):

{
    "name": "Riot Web",
    "app_path": [
        "/opt/Riot/riot-web",
        "/usr/bin/riot-desktop"
    ],
    "icons_path": [
        "/opt/Riot/resources/app/img/",
        "/opt/Riot/resources/webapp/vector-icons/",
        "/usr/lib/riot/electron_app/img/",
        "/usr/share/webapps/riot/vector-icons/"
    ],
    "icons": {
        "tray": {
            "original": "riot.png",
            "theme": "riot-tray"
        },
        "tray-ico": {
            "original": "favicon.ico",
            "theme": "riot-tray"
        }
    }
}

@redg3ar we added tray icons. Wait support ICO format on hardcode-tray and update database file on future.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

heldderarbeit picture heldderarbeit  ·  29Comments

varlesh picture varlesh  ·  285Comments

Chamrosh picture Chamrosh  ·  25Comments

varlesh picture varlesh  ·  89Comments

varlesh picture varlesh  ·  76Comments