bilelmoussaoui / Hardcode-Tray

Fixes Hardcoded tray icons in Linux
Other
863 stars 61 forks source link

Add Motrix (AUR version) #616

Closed KspLite closed 4 years ago

KspLite commented 4 years ago

Fixed tray icon for AUR packages of Motrix.

varlesh commented 4 years ago

thx for you PR, but why app_path& icons_pathduplicated?

KspLite commented 4 years ago

Sorry for that. I'm not familiar with this project and didn't know the exact meaning of the .json file. Please edit the file and fix it. Thanks.

varlesh commented 4 years ago

@KspLite what you distro and package version use? icon path to asar? i'm now extract Motrix 1.4.1.deb and asar located here: /opt/Motrix/resources/app.asar Also electron version already here: https://github.com/bilelmoussaoui/Hardcode-Tray/blob/master/data/database/motrix.electron.json

varlesh commented 4 years ago

or it's motrix-git from aur? they unpack asar? cp -r "${srcdir}/${_pkgname}/dist" "${pkgdir}/usr/lib/${_pkgname}/app" https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=motrix-git

KspLite commented 4 years ago

Yes I'm using motrix-git, and its built from source. I think just edit one of the /usr/lib/motrix/ to /usr/lib/Motrix is enough. Sorry again for troubling you.

rauldipeas commented 3 years ago

Motrix script it's outdated, i improvised with this...

{
    "name": "Motrix",
    "app_path": [
        "/opt/Motrix/",
        "/opt/motrix/"
    ],
    "icons_path": [
        "/opt/Motrix/resources/",
        "/opt/motrix/resources/"
    ],
    "binary": "app.asar",
    "script": "electron",
    "icons": {
        "tray": {
            "original": "dist/electron/static/mo-tray-colorful-normal.png",
            "theme": "motrix-tray"
        },
        "tray@1x": {
            "original": "dist/electron/static/mo-tray-dark-normal@1x.png",
            "theme": "motrix-tray"
        },
        "tray@2x": {
            "original": "dist/electron/static/mo-tray-dark-normal@2x.png",
            "theme": "motrix-tray"
        },                
        "tray-active": {
            "original": "dist/electron/static/mo-tray-colorful-active.png",
            "theme": "motrix-tray-active"
        },
        "tray-active@1x": {
            "original": "dist/electron/static/mo-tray-dark-active@1x.png",
            "theme": "motrix-tray-active"
        },
        "tray-active@2x": {
            "original": "dist/electron/static/mo-tray-dark-active@2x.png",
            "theme": "motrix-tray-active"
        }        
    }
}
varlesh commented 3 years ago

updated