Open eduardosm opened 6 years ago
It seems that using dbgprint instead of print (last commit) fixes it, but has not been released into a version yet. Could you please release a version that includes that change?
Sorry for not responding. Thanks for reporting. I've just tagged a version 1.2.9 :)
Edit - 20181030 21:16: Never mind, it works.I had to restart the plasmashell.
Even with this fix, it still spams /home/ramon/.local/share/sddm/xorg-session.log
:
qml: temp unit: 0
ramon@lenovo ~ % plasmashell --version
plasmashell 5.13.5
ramon@lenovo ~ % plasmapkg2 --version
KCatalog being used without a Q*Application instance. Some translations won't work
kpackagetool5 2.0
ramon@lenovo ~ % uname -a
Linux lenovo 4.14.65-gentoo #1 SMP Mon Aug 20 08:12:06 CEST 2018 x86_64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz GenuineIntel GNU/Linux
ramon@lenovo ~ %
I just cloned the master branch and installed it to /home/ramon/.local/share/plasma/plasmoids/
:
ramon@lenovo .._widgets/plasma-applet-thermal-monitor (git)-[master] % mkdir build
ramon@lenovo .._widgets/plasma-applet-thermal-monitor (git)-[master] % cd build
ramon@lenovo ..ts/plasma-applet-thermal-monitor/build (git)-[master] % cmake .. -DCMAKE_INSTALL_PREFIX=/home/ramon/.local
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.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
-- Could not set up the appstream test. appstreamcli is missing.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
CMake Warning at /usr/lib64/cmake/KF5Package/KF5PackageMacros.cmake:71 (message):
warnings during generation of metainfo for org.kde.thermalMonitor: KCatalog
being used without a Q*Application instance. Some translations won't work
Call Stack (most recent call first):
/usr/lib64/cmake/KF5Plasma/KF5PlasmaMacros.cmake:34 (kpackage_install_package)
CMakeLists.txt:17 (plasma_install_package)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ramon/git/keks24/github/plasma_widgets/plasma-applet-thermal-monitor/build
ramon@lenovo ..ts/plasma-applet-thermal-monitor/build (git)-[master] % make install
Scanning dependencies of target org.kde.thermalMonitor-plasmoids-metadata-json
[100%] Generating org.kde.thermalMonitor-plasmoids-metadata.json
About to parse service type file "/usr/share/kservicetypes5/plasma-applet.desktop"
Found property definition "X-Plasma-API" with type "QString"
Found property definition "X-Plasma-RootPath" with type "QString"
Found property definition "X-Plasma-MainScript" with type "QString"
Found property definition "X-Plasma-ContainmentType" with type "QString"
Found property definition "X-Plasma-DropMimeTypes" with type "QStringList"
Found property definition "X-Plasma-DropUrlPatterns" with type "QStringList"
Found property definition "X-Plasma-NotificationArea" with type "QString"
Found property definition "X-Plasma-NotificationAreaCategory" with type "QString"
Found property definition "X-Plasma-DBusActivationService" with type "QString"
Found property definition "X-KDE-ParentApp" with type "QString"
Found property definition "X-Plasma-Provides" with type "QStringList"
Found property definition "X-Plasma-PreloadWeight" with type "int"
Found property definition "X-Plasma-ConfigPlugins" with type "QStringList"
Found property definition "X-Plasma-StandAloneApp" with type "bool"
Found property definition "X-Plasma-RequiredExtensions" with type "QStringList"
Found property definition "NoDisplay" with type "bool"
Unknown property type for key "X-Plasma-RemoteLocation" -> falling back to string
Generated "/home/ramon/git/keks24/github/plasma_widgets/plasma-applet-thermal-monitor/build/org.kde.thermalMonitor-plasmoids-metadata.json"
[100%] Built target org.kde.thermalMonitor-plasmoids-metadata-json
Scanning dependencies of target translations
[100%] Built target translations
Install the project...
-- Install configuration: ""
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/fonts
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/fonts/fontawesome-webfont-4.3.0.ttf
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/config
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/config/config.qml
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/config/main.xml
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/code
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/code/config-utils.js
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/code/temperature-utils.js
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/code/model-utils.js
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/images
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/images/thermal-monitor.svg
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/ui
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/ui/config
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/ui/config/ConfigTemperatures.qml
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/ui/config/ConfigMisc.qml
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/ui/config/ConfigAppearance.qml
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/ui/main.qml
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/ui/TemperatureItem.qml
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/metadata.desktop
-- Installing: /home/ramon/.local/share/plasma/plasmoids/org.kde.thermalMonitor/metadata.json
-- Installing: /home/ramon/.local/share/metainfo/org.kde.thermalMonitor.appdata.xml
-- Installing: /home/ramon/.local/share/kservices5/plasma-applet-org.kde.thermalMonitor.desktop
-- Installing: /home/ramon/.local/share/locale/cs/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/de/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/el/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/en/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/es/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/fr/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/pl/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/ru/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/sr/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/sr@ijekavian/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/sr@ijekavianlatin/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
-- Installing: /home/ramon/.local/share/locale/sr@latin/LC_MESSAGES/plasma_applet_org.kde.thermalMonitor.mo
ramon@lenovo ..ts/plasma-applet-thermal-monitor/build (git)-[master] %
It still spams .xsession-errors
with qml: temp unit: 0
messages almost every second in Ubuntu 18.04.
Hi, I've the same issue: journalctl log is filled with repeated messages: qml: temp unit: 0
As workaround I comment out this line in temperature-utils.js:
// print('temp unit: ' + temperatureUnit)
my system Manjaro KDE 5.18.3
I have this issue too, on Archlinux with Plasma 5.18.4. I circumvented the problem by disabling the Qt debug logging by putting these:
QT_LOGGING_RULES='*.debug=false'
export QT_LOGGING_RULES
in /etc/profile
, as suggested here.
Edit: this project seems to be abandoned so I guess it's not the right place to ask for a fix.
With this widget, system log (journalctl) flooded with the same message:
plasmashell[962]: qml: temp unit: 0
Probably it has something to do with this line: https://github.com/kotelnik/plasma-applet-thermal-monitor/blob/0002326c677391a93d30320bfda1de608aca1ee7/package/contents/code/temperature-utils.js#L16