playbar2 icon indicating copy to clipboard operation
playbar2 copied to clipboard

Widget is empty

Open KOT040188 opened this issue 8 years ago • 69 comments

http://itmages.ru/image/view/6173594/3799b749 This picture shows that the widget is empty. This behavior of the widget is observed in kubuntu 16.04 and mint 18. At the same time its settings open normally.

KOT040188 avatar Oct 15 '17 20:10 KOT040188

Same here, openSUSE 42.3. Using DE: KDE 5.32.0 / Plasma 5.8.7 MP: Clementine 1.3.1 Just work the button Pause and not resume again.

ghost avatar Oct 16 '17 00:10 ghost

What am I supposed to do?

KOT040188 avatar Oct 17 '17 11:10 KOT040188

we need to wait support.

Sent from my Mi A1 using FastHub

ghost avatar Oct 22 '17 03:10 ghost

I will fix, give me a hours.

What is your media player? @KOT040188

jsmitar avatar Nov 05 '17 18:11 jsmitar

I updated kubuntu before 17.10 and the widget began to show its interface. But he works strange. It does not support lollypop and cantata. I do not have other audio players. The widget supports only kradio. Immediately after starting and pressing the pause button, the widget sets the sound in the system to zero. The following presses on this button work fine. Strange widget ...

KOT040188 avatar Nov 05 '17 19:11 KOT040188

Only occur with KRadio?

Immediately after starting and pressing the pause button, the widget sets the sound in the system to zero.

Do you have enable Mpris support in Cantata?

it does not support lollypop and cantata.

jsmitar avatar Nov 05 '17 20:11 jsmitar

Only occur with KRadio?

I have no other applications.

Do you have enable Mpris support in Cantata?

The regular audio player management widget works well with lollypop and cantata. Why can not PlayBar2 do this?

KOT040188 avatar Nov 05 '17 20:11 KOT040188

Then it must be an bug from my widget.

The regular audio player management widget works well with lollypop and cantata. Why can not PlayBar2 do this?

jsmitar avatar Nov 05 '17 20:11 jsmitar

I'm downloading cantata and lollypop to test my widget.

If I find the error, I will notify you.

jsmitar avatar Nov 05 '17 20:11 jsmitar

I try to start Lollipop but it does not start.

With respect to cantata, my widget works normally, I can use play/pause, stop and seek slider. what exactly the problem?

jsmitar avatar Nov 05 '17 21:11 jsmitar

Kubuntu 17.10 + backports. The playbar2 2.5 widget does not work with lollypop and cantata.

KOT040188 avatar Nov 05 '17 22:11 KOT040188

Please follow this steps:

  1. go to Cantata configure...
  2. Interface > click on tab: External
  3. check MPRIS D-Bus interface
  4. check show icon in notification area

play any song, close cantata from the titlebar and paste a screenshot.

jsmitar avatar Nov 05 '17 22:11 jsmitar

show me a screenshot of cantanta and playbar

jsmitar avatar Nov 05 '17 22:11 jsmitar

I can make it easier. I'll write a video tomorrow.

KOT040188 avatar Nov 05 '17 22:11 KOT040188

ok, dont worry

jsmitar avatar Nov 05 '17 22:11 jsmitar

https://youtu.be/qV6zJld4dRY But I managed to get the PlayBar2 widget to work with lollypop and cantata. The problem is that PlayBar2 does not know how to switch between applications on the fly. The standard widget kde knows how to do this. Kradio starts with the system and hangs in the tray. Therefore, if you click on the play button in PlayBar2, it will turn on Kradio. If you close Kradio, then PlayBar2 will be able to switch to the next running player and become attached to it (eg lollypop). On the other players, he will not react until I turn off the lollypop.

KOT040188 avatar Nov 06 '17 14:11 KOT040188

https://youtu.be/VCYEiqHZ-Hc This video shows that the sound level in the system is set to zero when the pause button is first pressed.

KOT040188 avatar Nov 06 '17 14:11 KOT040188

I really liked PlayBar2. I want to use it. But these bugs interfere with me ...

KOT040188 avatar Nov 06 '17 14:11 KOT040188

@KOT040188 Hello again. Give me a few minutes I will try to understand what happens.

jsmitar avatar Nov 06 '17 21:11 jsmitar

It is possible that it is an error of KRadio4, I was only able to reproduce the bug once, however I will continue testing with KRadio.

This video shows that the sound level in the system is set to zero when the pause button is first pressed.

I suppose it is an error in how PlayBar selects the source automatically.

The problem is that PlayBar2 does not know how to switch between applications on the fly.

Can you try to run playbar from the terminal and paste the output of the terminal? plasmoidviewer -a audoban.applet.playbar

remember install plasma-sdk to use plasmoidviewer

jsmitar avatar Nov 06 '17 22:11 jsmitar

It is possible that it is an error of KRadio4, I was only able to reproduce the bug once, however I will continue testing with KRadio.

No. If I do not run kradio, then the behavior of playbar2 with other players will be exactly the same.

I suppose it is an error in how PlayBar selects the source automatically.

Playbar2 does not know how to automatically select a active player. He is attached to the first running player. This is the problem. Standard widget can automatically select the active player.

Can you try to run playbar from the terminal and paste the output of the terminal?

I can do it tomorrow. It's night ...

KOT040188 avatar Nov 06 '17 22:11 KOT040188

Please test with this version, now you can select the prefered source. https://github.com/audoban/PlayBar2/tree/newfeatures

spectacle ns2699

jsmitar avatar Nov 07 '17 06:11 jsmitar

Sorry, but I can not compile

KOT040188 avatar Nov 07 '17 11:11 KOT040188

kot@kot-MS-7930:~$ plasmoidviewer -a audoban.applet.playbar QML debugging is enabled. Only use this in a safe environment. Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/16/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/16@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/22/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/22@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/24/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix-Circle/24@2x/panel/" Invalid Context= "Panel" line for icon theme: "/home/kot/.local/share/icons/Numix/16/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/16/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/16@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/22/panel/" Invalid Context= "Panel" line for icon theme: "/home/kot/.local/share/icons/Numix/22@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/22@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/24/panel/" Invalid Context= "Panel" line for icon theme: "/home/kot/.local/share/icons/Numix/24@2x/panel/" Invalid Context= "Panel" line for icon theme: "/usr/share/icons/Numix/24@2x/panel/" Invalid Context= "Notifications" line for icon theme: "/usr/share/icons/Numix/48/notifications/" Invalid Context= "Notifications" line for icon theme: "/home/kot/.local/share/icons/Numix/48@2x/notifications/" Invalid Context= "Notifications" line for icon theme: "/usr/share/icons/Numix/48@2x/notifications/" Icon theme "gnome" not found. Toolbox not loading, toolbox package is either invalid or disabled. Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion <Unknown File>: QML Plasmoid: Binding loop detected for property "preferredRepresentation" file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: QML QQuickItem: Binding loop detected for property "implicitWidth" file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: QML QQuickItem: Binding loop detected for property "implicitWidth"

KOT040188 avatar Nov 07 '17 11:11 KOT040188

How do I get the finished compiled widget?

KOT040188 avatar Nov 07 '17 21:11 KOT040188

Download the version of the branch newfeatures and install the dependences for build Playbar. and for install the widget:

mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make && sudo make install

Playbar newfeatures

jsmitar avatar Nov 07 '17 22:11 jsmitar

Why can not you give me a finished package? I do not understand what to do.

KOT040188 avatar Nov 08 '17 03:11 KOT040188

I was told a little what to do. Some mistake. kot@kot-MS-7930:~/bin/PlayBar2-newfeatures/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. -- The C compiler identification is GNU 7.2.0 -- The CXX compiler identification is GNU 7.2.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:11 (find_package): Could not find a package configuration file provided by "Qt5" (requested version 5.4.1) with any of the following names: Qt5Config.cmake qt5-config.cmake Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR" to a directory containing one of the above files. If "Qt5" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/home/kot/bin/PlayBar2-newfeatures/build/CMakeFiles/CMakeOutput.log".

KOT040188 avatar Nov 08 '17 11:11 KOT040188

I didn't have a environment with Debian build a package.

Why can not you give me a finished package? I do not understand what to do.

Run this commands from the terminal

# dependences in Kubuntu
sudo apt-get install g++ plasma-framework-dev plasma-workspace-dev libkf5declarative-dev \
libkf5globalaccel-dev libkf5configwidgets-dev libkf5xmlgui-dev \
libkf5windowsystem-dev kdoctools-dev cmake extra-cmake-modules kdelibs5-dev

# clone the repository
git clone https://github.com/audoban/PlayBar2.git
cd PlayBar2
git checkout newfeatures

# build the widget
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make 
sudo make install

jsmitar avatar Nov 08 '17 15:11 jsmitar

Again the problem: kot@kot-MS-7930:~/PlayBar2/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. -- The C compiler identification is GNU 7.2.0 -- The CXX compiler identification is GNU 7.2.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Installing in the same prefix as Qt, adopting their path scheme. -- Found KF5Plasma: /usr/lib/x86_64-linux-gnu/cmake/KF5Plasma/KF5PlasmaConfig.cmake (found version "5.39.0") -- Found KF5PlasmaQuick: /usr/lib/x86_64-linux-gnu/cmake/KF5PlasmaQuick/KF5PlasmaQuickConfig.cmake (found version "5.39.0") -- Found KF5WindowSystem: /usr/lib/x86_64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.39.0") -- Found KF5ConfigWidgets: /usr/lib/x86_64-linux-gnu/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.39.0") -- Found KF5XmlGui: /usr/lib/x86_64-linux-gnu/cmake/KF5XmlGui/KF5XmlGuiConfig.cmake (found version "5.39.0") -- Found KF5GlobalAccel: /usr/lib/x86_64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake (found version "5.39.0") CMake Error at /usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE) Call Stack (most recent call first): /usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.9/Modules/FindGettext.cmake:76 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18NMacros.cmake:28 (find_package) /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake:43 (include) /usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package) CMakeLists.txt:16 (find_package) -- Configuring incomplete, errors occurred! See also "/home/kot/PlayBar2/build/CMakeFiles/CMakeOutput.log".

KOT040188 avatar Nov 08 '17 16:11 KOT040188