Giter VIP home page Giter VIP logo

Comments (42)

zaps166 avatar zaps166 commented on August 20, 2024

I don't know. I can try on Plasma 5 later (Arch Linux), but I don't know how does it work (I'm using Mate).
What is this? Is it an app launcher or system tray?

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

This panel launcher "tasks widget (icon only)". Maybe this icon on binary or program not like SVG. You can test this with icon:
https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-icon-theme-kde/0d2972a72e7bc02437475bb16fdf9be1154a5fac/papirus/48x48/apps/QMPlay2.svg

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

Maybe just export it in Inkscape as PNG (e.g. 128x128) and replace the icon: /usr/share/icons/hicolor/128x128/apps/QMPlay2.png ?

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

By the by this symlink /usr/share/icons/hicolor/128x128/apps/QMPlay2.png > ../../../QMPlay2.png

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

sudo rm /usr/share/icons/hicolor/128x128/apps/QMPlay2.png
sudo rm /usr/share/icons/QMPlay2.png

And then just paste your new PNG icon here (/usr/share/icons/hicolor/128x128/apps) or maybe SVG will also work.

Which distribution do you use? If Arch Linux you can currently switch to qmplay2-git - it doesn't create the symlink :)

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

This not working (also i clear cache icon and plasma):
screenshot_20160622_011325

i'm use stable version on Manjaro KDE

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

Ok, i'm compile git-version from AUR and check this

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

I don't know if deleting cache doesn't help... Did you restart plasma? This is QMPlay2 independent...

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

Yes i'm delete cache and restart plasma:

rm -rf ~/.cache/plasm*
killall plasmashell

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

It's strange hm...
Git-version:
screenshot_20160622_013221

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

use xorg icon

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

Check whether /usr/share/icons/QMPlay2.png does not exists.
Check whether /usr/share/icons/hicolor/128x128/apps/QMPlay2.png exists.

and check the icon name in *.desktop files.

Delete caches, restart plasma...

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

Player closed - use system icon
screenshot_20160622_013413

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

Maybe there is another problem - does plasma update the icon from application icon?

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

/usr/share/icons/QMPlay2.png does not exists - confirm this
/usr/share/icons/hicolor/128x128/apps/QMPlay2.png exists - confirm this.
Desktop:

[Desktop Entry]
Exec=QMPlay2 %F
Icon=QMPlay2
Name=QMPlay2
StartupNotify=false
Type=Application
Categories=Qt;AudioVideo;Player;Audio;Video;
MimeType=video/mp4;video/mpeg;video/ogg;video/quicktime;video/x-msvideo;video/x-flv;application/x-shockwave-flash;application/vnd.rn-realmedia;video/vnd.rn-realvideo;video/3gpp;video/3gpp2;video/dv;video/webm;video/x-matroska;application/x-matroska;video/x-ms-asf;video/x-ms-wmv;video/x-ogm+ogg;video/x-theora+ogg;video/mp2t;audio/x-ape;audio/mp4;audio/AMR;audio/aac;audio/webm;audio/x-matroska;audio/ac3;audio/flac;audio/mp2;audio/ogg;audio/x-flac+ogg;audio/x-aiff;audio/x-wav;audio/x-vorbis+ogg;audio/x-tta;audio/x-wavpack;audio/x-musepack;audio/x-ms-wma;audio/x-ms-asx;audio/x-mod;audio/x-s3m;audio/x-stm;audio/x-xi;audio/x-xm;audio/x-it;audio/mpeg;audio/x-mpegurl;audio/x-scpls;audio/prs.sid;audio/x-j2b;audio/x-sfx;audio/x-umx;audio/x-gme;video/x-bink;

Now del cache and restart PC and check

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

I think that Plasma5 just loads the application/window icon instead of system icon if QMPlay2 is open.

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

I think that this line:

QApplication::setWindowIcon(QMPlay2Core.getQMPlay2Pixmap());
causes the problem. If yo really want to use other icon then I can try to load the system icon in this place.

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

For example, my friend programmer and use this variant:
Maybe help this :)

setWindowIcon(QIcon::fromTheme("krudio",QIcon(path+"krudio.svg")));//иконка окна
    if(save){//сохраняем изменения в базу
        QString str;
        QSqlQuery a_query;
        bool b;
        //Вставить значения
        QString str_insert = "UPDATE "+tableSettingName+" SET value = %1 WHERE setting ='%2';";
        str = str_insert.arg(colorNumb).arg("color");
        b = a_query.exec(str);
        if (!b) {qDebug() << "Данные не сохнаняются";}
    }
}

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

restart pc and clear cache not solved problem

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

Use system icon (if available) or not available use fallback icon from hicolor or another method.

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

Ok, I'll try :)

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

Please recompile & test :)

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

ok

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

Not working - use xorg icon :(

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

screenshot_20160622_022113

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

Hmm, ok, switching to Plasma 5 (please wait)...

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

Ok. I'm clear all cache and icons too, restart plasma, convert png to svg and copy to system icons folder... but always show xorg icon

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

No problems (tried with CMake icon 😃)... Try to remove rm ~/.cache/icon-cache.kcache or maybe all files from cache directory and then restart Plasma.
qmplay2-plasma5-with-cmake-icon

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

delete all ~/.cache but not solved. convert svg to png (VLC icon), restart plasma. Please see on /usr/share/applications and hicolor vlc icon, but on launcher xorg
screenshot_20160622_024651

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

And what if you close QMPlay2? Still Xorg icon?

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

No, close - use system icon (VLC now)

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

I can't reproduce. Everything is OK on my Plasma5 and on Mate.
What if you do: sudo ln -s /usr/share/icons/hicolor/128x128/apps/QMPlay2.png /usr/share/icons/QMPlay2.png? Maybe it still remembers the old icon location /usr/share/icons/QMPlay2.png and tries to load non-existing file at runtime? Maybe it has another cache somewhere else?

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

I convert vlc.svg to vlc.png on gimp. Moved new QMPlay2.png to /usr/share/icons/breeze/apps/48/ and to /usr/share/icons/hicolor/128x128/apps/
On dolphin and KMenu show VLC icon, also if touch player icon on panel - show VLC icon too (player closed). Bur run player and show Xorg icon on panel

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

screenshot_20160622_030629
screenshot_20160622_030618

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

What icon do you have in tray (expand it, the indicator on the left of the temperature) if player is running?
What if you copy/move the QMPlay2.png to /usr/share/icons ?

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

on systemtray use vlc icon
screenshot_20160622_031053

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

The system tray icon is exactly the same icon as on taskbar (see f2facc5 - it uses the window icon). Something must be wrong with your KF5. Could you try on Xfce4, Mate or any other DE/WM? You can try to load openbox in Plasma5 yaourt -S openbox; openbox --replace and then try. Then go back to kwin kwin_x11 --replace from "Alt+F2" launcher. Maybe kwin5 has bug? If you are using Manjaro "stable" repo then you probably have old Qt 5.6.0. Qt 5.6.1 is much better than Qt 5.6.0 (less bugs).

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

It's strange because other Qt5-apps show system icon, example qbittorrent.
Ok i try this latter... and go now sleep :)

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

I think this is Kwin5 or Plasma5 bug (or something wrong with cache), because Qt loads tray icon from window icon and the tray icon is OK, but window icon is not OK on Plasma/Kwin (internally in Qt is OK).

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

Ok, mee too 😃 2:20 AM in Poland

Later (if it still will work bad) please try with openbox WM on Plasma5 :)

from qmplay2.

varlesh avatar varlesh commented on August 20, 2024

I'm check on openbox - use system icon on panel, it's OK. This bug Qt or Kwin. After upgrade Qt5 and Plasma check again. Thx for support :)

from qmplay2.

zaps166 avatar zaps166 commented on August 20, 2024

So probably Kwin5 bug (or unknown other cache) :)
According to #30 (comment) probably it has problem because of changed icon directory (qmplay2 and qmplay2-git). Sorry, but I can't help, this is out of scope...

from qmplay2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.