New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plasma: 5.11.5 -> 5.12.1 #34726
plasma: 5.11.5 -> 5.12.1 #34726
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. I also started with this yesterday, but you was faster! :) I added two comments. I will compile it later and will report back.
}: | ||
|
||
mkDerivation { | ||
name = "kde-gtk-config"; | ||
nativeBuildInputs = [ extra-cmake-modules ]; | ||
buildInputs = [ | ||
ki18n kio glib gtk2 gtk3 karchive kcmutils kconfigwidgets kiconthemes | ||
knewstuff | ||
knewstuff gsettings_desktop_schemas gsettings_desktop_schemas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add it twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a mistake. Fixed!
CXXFLAGS = [ | ||
''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"'' | ||
"-I${lib.getDev kwayland}/include/KF5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a patch upstream for this: https://phabricator.kde.org/D10373
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a much better fix. Changed to your patch :)
9596f59
to
c75d15b
Compare
+# we have to unset this for Darwin since it will screw up KDE's dynamic-loading | ||
+unset DYLD_FORCE_FLAT_NAMESPACE | ||
+ | ||
+export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" | ||
+@NIXPKGS_MKDIR@ -p "$XDG_CONFIG_HOME" | ||
+_MKDIR@ -p "$XDG_CONFIG_HOME" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_MKDIR
needs to be NIXPKGS_MKDIR
-mkdir -p $configDir | ||
+# Set the default GTK 3 theme | ||
+gtk3_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini" | ||
+_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also looks not good.
@adisbladis, I applied the following changes: index f3aa4743bb2..e012537e402 100644
--- a/pkgs/desktops/plasma-5/plasma-workspace/plasma-workspace.patch
+++ b/pkgs/desktops/plasma-5/plasma-workspace/plasma-workspace.patch
@@ -828,7 +828,7 @@ index 8ac47aa..49970ef 100644
+unset DYLD_FORCE_FLAT_NAMESPACE
+
+export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
-+_MKDIR@ -p "$XDG_CONFIG_HOME"
++@NIXPKGS_MKDIR@ -p "$XDG_CONFIG_HOME"
+
+# The KDE icon cache is supposed to update itself
+# automatically, but it uses the timestamp on the icon
@@ -880,7 +880,7 @@ index 8ac47aa..49970ef 100644
-# We need to create config folder so we can write startupconfigkeys
-mkdir -p $configDir
+# Set the default GTK 3 theme
-+_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
++gtk3_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
+breeze_gtk3="/run/current-system/sw/share/themes/Breeze/gtk-3.0"
+if ! [ -e "$gtk3_settings" ] && [ -e "$breeze_gtk" ]; then
+ mkdir -p $(dirname "$gtk3_settings")
@@ -1033,7 +1033,7 @@ index 8ac47aa..49970ef 100644
- XCURSOR_THEME="$kcminputrc_mouse_cursortheme"
- export XCURSOR_THEME
+if [ -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ]; then
-+ kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
++ #kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
+ if [ $? -eq 10 ]; then
+ export XCURSOR_THEME=breeze_cursors
+ elif [ -n "$kcminputrc_mouse_cursortheme" ]; then
@@ -1106,7 +1106,7 @@ index 8ac47aa..49970ef 100644
-
# Make sure that D-Bus is running
-if qdbus >/dev/null 2>/dev/null; then
-+if ! @NIXPKGS_QDBUS@ >/dev/null 2>/dev/null; then
++if @NIXPKGS_QDBUS@ >/dev/null 2>/dev/null; then
: # ok
else
echo 'startplasmacompositor: Could not start D-Bus. Can you call qdbus?' 1>&2 After applying these changes, I can start the wayland session :) Besides that, everything seems to be working for me. |
xf86 input libinput is now required by plasma-desktop. Otherwise the "mouse" system settings is not present: |
c75d15b
to
0783c5f
Compare
@bkchr Thanks! Applied and rebased.
Perfect! Applied your patch. |
Now I have actually been running on this for a few hours and things seem to work as expected! :) |
; | ||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series) ++ [ | ||
(fetchpatch { | ||
url = "https://phabricator.kde.org/file/data/ojbvgljuhqxztrdcicoy/PHID-FILE-6wvjkli2blrgw7jei3qg/D26720.diff"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url does not work for me.
The following works for me:
https://phabricator.kde.org/file/data/5bu6h2c2ksaqctyy275b/PHID-FILE-jtbgqz2heluxsovlqyv3/D10373.diff
Suspicious, that your url also has a different filename?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange. That was working at some point.
How stable are phabricator urls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adisbladis if you want to be on the save side, the patch got merged: KDE/kwin@6e5f5d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! I'll use the github link.
This also just became security related with CVE-2018-6791. |
We should implement this; I think a few users are testing Plasma on Wayland, although we don't have it enabled by default yet: https://mail.kde.org/pipermail/distributions/2017-December/000260.html |
0783c5f
to
5708382
Compare
@ttuegel Started implementing: Applied a patch not to run Not sure what to do about the absolute paths in https://github.com/adisbladis/nixpkgs/blob/b323fe38530fa0bc69ab0070743d5c8bb235c0b2/pkgs/desktops/plasma-5/plasma-workspace/plasma-workspace.patch though. |
b323fe3
to
c253f16
Compare
c253f16
to
f972ad8
Compare
sha256 = "0z5nbcg712v10mskb7r9v0jcx5h8q4ixb7fjbb0kicmzsc266yd5"; | ||
})] | ||
; | ||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series) ++ [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add in a comment mentioning when we can drop this patch again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
f972ad8
to
1de98e8
Compare
Plasma Unless there is any feedback on this within the next day or two I plan to merge it. |
Do you mind testing this together with #34936? |
@peterhoeg My desktop has already been running on both of these PRs for a day :) |
Then LGTM! |
I also have Plasma 5.12 and frameworks 5.43 running on my Laptop and everything seems to be fine :) |
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)Tests are passing but have not had the time to actually try things out.
cc @ttuegel @peterhoeg @bkchr