https://bugs.kde.org/show_bug.cgi?id=521553

--- Comment #4 from Ramil <[email protected]> ---
I looked into this issue. The cause seems to be that screen names are formatted
differently in `plasma-workspace` and in the Display Configuration KCM.

The "Manage Panels and Desktops" dialog uses `ScreenPoolModel` from
`plasma-workspace/shell/shellcontainmentconfig.cpp` and currently adds the
connector name in some cases, for example `Internal Screen on eDP-1` or `Vendor
Model on DP-1`.

The Display Configuration KCM uses libkscreen and shows names differently, for
example `Built-in Screen` for the internal panel and usually `Vendor Model` for
external monitors.

There are several possible ways to fix this. I tried the simplest one: adjust
the name formatting in `plasma-workspace` to match the KCM more closely:

if (screen->name().contains(u"eDP"_s)) {
    d.name = i18n("Built-in Screen");
} else if (!screen->manufacturer().isEmpty() && !screen->model().isEmpty()) {
    d.name = screen->manufacturer() + u' ' + screen->model();
} else if (!screen->model().isEmpty()) {
    d.name = screen->model();
} else {
    d.name = screen->name();
}


This change is local to `ScreenPoolModel::load()` in `plasma-workspace`.
Screenshot showing the screen name mismatch
If this approach is acceptable, I can submit an MR.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to