SeptemberHX / dde-istate-menus

a dde-dock plugin which aims to implement most features of Istat menus(macOS) for Deepin V20
GNU General Public License v3.0
40 stars 5 forks source link

deepin V20安装提示版本不兼容!!是因为我使用的虚拟机的原因吗? #4

Closed ancion closed 4 years ago

SeptemberHX commented 4 years ago

sudo apt install libqt5charts5 然后再试试

ancion commented 4 years ago

安装之后,itatus_menu 可以用了,但是  dde_top_panel 不能运行了,报错见图片

------------------ 原始邮件 ------------------ 发件人: "SeptemberHX"<notifications@github.com>; 发送时间: 2020年6月18日(星期四) 上午9:16 收件人: "SeptemberHX/dde-istate-menus"<dde-istate-menus@noreply.github.com>; 抄送: "独角兽"<2471855439@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [SeptemberHX/dde-istate-menus] deepin V20安装提示版本不兼容!!是因为我使用的虚拟机的原因吗? (#4)

sudo apt install libqt5charts5 然后再试试

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

SeptemberHX commented 4 years ago

没有看见图片

ancion commented 4 years ago

截图录屏_选择区域_20200618095048 在~/.local/lib/dde-top-panel/pluggins/里面移除了libtray.so,top_panel就可以出来.

SeptemberHX commented 4 years ago

用的是之前版本打包的 libtray.so 吧,以前的有问题。

ancion commented 4 years ago

替换的rc1版本,然后显示不出来就换了 /usr/lib/dee-dock/pluggins/下面的libtray.so ,也是出不来,截图我已经不记得是换之前还是之后的了。

ancion commented 4 years ago

截图录屏_dde-desktop_20200619095849 在顶栏宽度与dock栏中的宽度不一致,顶栏宽度(略高)看着没有dock里面和谐,

SeptemberHX commented 4 years ago

替换的rc1版本,然后显示不出来就换了 /usr/lib/dee-dock/pluggins/下面的libtray.so ,也是出不来,截图我已经不记得是换之前还是之后的了。

先用系统的吧,可能新版有问题

SeptemberHX commented 4 years ago

截图录屏_dde-desktop_20200619095849 在顶栏宽度与dock栏中的宽度不一致,顶栏宽度(略高)看着没有dock里面和谐,

严格来说,顶栏上的效果才是设计的效果。dock上变矮是因为 dock 会压缩插件的高度。

PlankCipher commented 4 years ago

So, isn't there any way to use dde-top-panel with both libtray.so and libdde_istate_menus.so?

SeptemberHX commented 4 years ago

So, isn't there any way to use dde-top-panel with both libtray.so and libdde_istate_menus.so?

Copying both of them to ~/.local/lib/dde-top-panel/plugins should work

PlankCipher commented 4 years ago

Copying both of them to ~/.local/lib/dde-top-panel/plugins should work

I had dde-top-panel working really well before adding libdde_istat_menus.so to ~/.local/lib/dde-top-panel/plugins. Now I get the following error when launching dde-top-panel.

===========> create top panel on "eDP-1"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
Not allowed to cQhange display mode
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QMetaObject::invokeMethod: No such method deepin_platform_plugin::DNoTitlebarWindowHelper::updateTranslucentBackgroundFromProperty()
Failed to update property: "updateTranslucentBackgroundFromProperty"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
using dock local plugins dir: "/home/plankcipher/.local/lib/dde-top-panel/plugins/"
using dock plugins dir: "/usr/lib/dde-top-panel/plugins"
"DockPlugin" init plugin:  "datetime"
load plugins item:  "datetime" "datetime" DatetimeWidget(0x20f59b0)
"DockPlugin" init plugin finished:  "datetime"
"DockPlugin" init plugin:  "dde_istate_menus"
load plugins item:  "dde_istate_netspeed" "dde_istate_netspeed" DDENetspeedTextWidget(0x20a1580)
load plugins item:  "dde-istate-datetime" "dde-istate-datetime" DatetimeWidget(0x2177680)
load plugins item:  "dde-istate-cpu" "dde-istate-cpu" DDECpuItemWidget(0x2265b20)
load plugins item:  "dde-istate-ram" "dde-istate-ram" DDERamItemWidget(0x22e04f0)
load plugins item:  "dde-istate-sensor" "dde-istate-sensor" DDESensorItemWidget(0x22eeab0)
"DockPlugin" init plugin finished:  "dde_istate_menus"
"DockPlugin" init plugin:  "tray"
QLayout: Attempting to add QLayout "" to HoldContainer "", which already has a layout
QLayout: Attempting to add QLayout "" to HoldContainer "", which already has a layout
"{\"bluetooth\":{\"holded_bluetooth-item-key\":false},\"datetime\":{\"Use24HourFormat\":true,\"enable\":false,\"pos_1\":2},\"disk-mount\":{\"holded_mount-item-key\":false},\"multitasking\":{\"enable\":false},\"network\":{\"holded_network-item-key\":false},\"notifications\":{\"enable\":true,\"pos_notifications_1\":1},\"onboard\":{\"enable\":false},\"power\":{\"holded_power\":false},\"show-desktop\":{\"enable\":false},\"shutdown\":{\"enable\":true,\"pos_shutdown_1\":3},\"sound\":{\"holded_sound-item-key\":false},\"trash\":{\"pos_trash_1\":4},\"tray\":{\"fashion-mode-trays-sorted\":true,\"fashion-tray-expanded\":false,\"holded_sni:Fcitx\":false,\"holded_sni:SimpleScreenRecorder\":false,\"holded_sni:Stretchly1\":false,\"holded_sni:albert\":false,\"holded_sni:chrome_status_icon_1\":false,\"holded_sni:deepin-music\":false,\"holded_sni:deepin-screen-recorder\":false,\"holded_sni:discord1\":false,\"holded_window:25165832\":false,\"holded_window:Stretchly1\":false,\"holded_window:guake\":false,\"holded_window:onboard\":false,\"holded_window:xdman-Main\":false,\"pos_sni:Stretchly1_1\":1}}"
"DockPlugin" init plugin finished:  "tray"
init Fashion mode tray plugin item
delay load 0 "keybord_layout" IndicatorTray(0x1d8c3f0)
Ethernet link detected
using system tray plugins dir: "/usr/lib/dde-dock/plugins/system-trays"
err:  -3
QObject::connect: invalid null parameter
Found Kaby Lake Processor type
        0 (0), 1 (0), 2 (0), 3 (0), 
        Detected 4 cores in 1 packages

rdmsr:open: No such file or directory
Trying to open /dev/cpu/0/msr
QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
QObject::~QObject: Timers cannot be stopped from another thread

Edit: Even dde-dock crashed with the same error after adding libdde_istat_menus.so to /usr/lib/dde-dock/plugins/

SeptemberHX commented 4 years ago

Copying both of them to ~/.local/lib/dde-top-panel/plugins should work

I had dde-top-panel working really well before adding libdde_istat_menus.so to ~/.local/lib/dde-top-panel/plugins. Now I get the following error when launching dde-top-panel.

===========> create top panel on "eDP-1"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
Not allowed to cQhange display mode
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QMetaObject::invokeMethod: No such method deepin_platform_plugin::DNoTitlebarWindowHelper::updateTranslucentBackgroundFromProperty()
Failed to update property: "updateTranslucentBackgroundFromProperty"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
Pass NET::WM2DesktopFileName to KWindowInfo
Pass NET::WM2WindowClass to KWindowInfo
Pass NET::WMVisibleIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
Pass NET::WMIconName to KWindowInfo
Pass NET::WMVisibleName to KWindowInfo
"Hyper" "" "" "Hyper" "Hyper" "Hyper"
using dock local plugins dir: "/home/plankcipher/.local/lib/dde-top-panel/plugins/"
using dock plugins dir: "/usr/lib/dde-top-panel/plugins"
"DockPlugin" init plugin:  "datetime"
load plugins item:  "datetime" "datetime" DatetimeWidget(0x20f59b0)
"DockPlugin" init plugin finished:  "datetime"
"DockPlugin" init plugin:  "dde_istate_menus"
load plugins item:  "dde_istate_netspeed" "dde_istate_netspeed" DDENetspeedTextWidget(0x20a1580)
load plugins item:  "dde-istate-datetime" "dde-istate-datetime" DatetimeWidget(0x2177680)
load plugins item:  "dde-istate-cpu" "dde-istate-cpu" DDECpuItemWidget(0x2265b20)
load plugins item:  "dde-istate-ram" "dde-istate-ram" DDERamItemWidget(0x22e04f0)
load plugins item:  "dde-istate-sensor" "dde-istate-sensor" DDESensorItemWidget(0x22eeab0)
"DockPlugin" init plugin finished:  "dde_istate_menus"
"DockPlugin" init plugin:  "tray"
QLayout: Attempting to add QLayout "" to HoldContainer "", which already has a layout
QLayout: Attempting to add QLayout "" to HoldContainer "", which already has a layout
"{\"bluetooth\":{\"holded_bluetooth-item-key\":false},\"datetime\":{\"Use24HourFormat\":true,\"enable\":false,\"pos_1\":2},\"disk-mount\":{\"holded_mount-item-key\":false},\"multitasking\":{\"enable\":false},\"network\":{\"holded_network-item-key\":false},\"notifications\":{\"enable\":true,\"pos_notifications_1\":1},\"onboard\":{\"enable\":false},\"power\":{\"holded_power\":false},\"show-desktop\":{\"enable\":false},\"shutdown\":{\"enable\":true,\"pos_shutdown_1\":3},\"sound\":{\"holded_sound-item-key\":false},\"trash\":{\"pos_trash_1\":4},\"tray\":{\"fashion-mode-trays-sorted\":true,\"fashion-tray-expanded\":false,\"holded_sni:Fcitx\":false,\"holded_sni:SimpleScreenRecorder\":false,\"holded_sni:Stretchly1\":false,\"holded_sni:albert\":false,\"holded_sni:chrome_status_icon_1\":false,\"holded_sni:deepin-music\":false,\"holded_sni:deepin-screen-recorder\":false,\"holded_sni:discord1\":false,\"holded_window:25165832\":false,\"holded_window:Stretchly1\":false,\"holded_window:guake\":false,\"holded_window:onboard\":false,\"holded_window:xdman-Main\":false,\"pos_sni:Stretchly1_1\":1}}"
"DockPlugin" init plugin finished:  "tray"
init Fashion mode tray plugin item
delay load 0 "keybord_layout" IndicatorTray(0x1d8c3f0)
Ethernet link detected
using system tray plugins dir: "/usr/lib/dde-dock/plugins/system-trays"
err:  -3
QObject::connect: invalid null parameter
Found Kaby Lake Processor type
        0 (0), 1 (0), 2 (0), 3 (0), 
        Detected 4 cores in 1 packages

rdmsr:open: No such file or directory
Trying to open /dev/cpu/0/msr
QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
QObject::~QObject: Timers cannot be stopped from another thread

Edit: Even dde-dock crashed with the same error after adding libdde_istat_menus.so to /usr/lib/dde-dock/plugins/

Seems libdde_istat_menus.so causes the crash. Have you enabled msr? File /dev/cpu/0/msr should exist if msr is enabled.

PlankCipher commented 4 years ago

Seems libdde_istat_menus.so causes the crash. Have you enabled msr? File /dev/cpu/0/msr should exist if msr is enabled.

Yeah. That fixed it. Thanks a lot. For the sake of clarity, execute sudo modprobe msr to enable it, then relaunch dde-top-panel or dde-dock.