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
sway: refactor with a wrapper #75247
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.
Sorry for the delay, I'm a bit short on time atm.
This differs from what I had in mind, but I'm also open for suggestions if you or someone else has a better idea (I haven't thought that much about this so far). If you just want the functionality I'm also fine if this only changes the sway
package by e.g. introducing a wrapGApps
"use flag" (true/false).
Feel free to ask any questions, my review might be too short to properly explain what I had in mind... :o
Hello @primeos, thank you for your extensive review ! I've re-read what you said on #67704 and with the information you given I've changed the way I implemented it :
I did not understood what you meant with the |
Maybe rename the |
@Synthetica9 You are right, It wasn't really explicit. Fixed it. |
@primeos I have just found your PR about adding Sway to dislpay managers :
I believe it will be impacted by this PR (if merged). Do you want to merge yours first then let me rebase mine or the other way around ? |
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.
Awesome, looks way better now :)
Regarding the other PR: I'll probably merge my PR first as it's very trivial and already good to go (I assume). Feel free to rebase if you want.
cc @gnidorah @colemickens (FYI, forgot that |
Thank you again @primeos for your time and review, I've made the fixes you asked, important changes made in this iteration :
EDIT: I'm still having trouble to understand the exact behavior of |
Rebased branch after merging of #75363 |
@elyhaka thanks for your awesome work, I finally got around to properly review this (sorry for the long delay :o) and added a few minor improvements. Are you ok with these changes? If so I would run a final test, squash my commit into yours and it should be ready to be merged. |
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 quick review for myself to not forget about the wrong indentations I've introduced...
Update: Fixed the indentations.
TODOs:
- ACK from @elyhaka
- Squash the commits
- Final test
This looks good to me ! Thank you for taking the time to do the final changes 😄 |
@primeos : I've made some tests, and it seems we have a regression on gsettings. I'm investigating the cause. EDIT : I managed to make it works again locally (I haven't committed since I do not want to touch your modification without being sure it fits the requirements). Here are my steps to restore the expected behavior:
I am not sure at all why it behaves this way |
@primeos : It works with the last commit 👍 |
@elyhaka thanks, I totally missed that regression :o I verified that the wrapper was adding arguments but didn't realise that some where missing. I've had a look at The reason for the
With this hack only sway will be wrapped and also only once (if I think about it it should also be possible to get rid of
Edit:
Awesome, thanks :) |
@primeos Wow, really good catch ! Thank you very much for the explanation. It is way cleaner with this approach. Everything looks good to me ! |
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.
Should be ready to merge now :) \o/
Thank you @elyhaka
Thank you too @primeos ! 😃 |
Motivation for this change
When executing
sway
, if you startwaybar
, orwofi
, Icon themes and/or Gtk Themes are not loaded.It can be fixed by bulindg Sway with a
wrapGAppsHook
innativeBuildInputs
. @primeos proposed on issue #67704 to default on an unwrapped version. which is made is this PR withprograms.sway.package
option defaulting to anunwrapped
version of Sway.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @primeos