-
-
Notifications
You must be signed in to change notification settings - Fork 139
✨ zb: Add helper for IBus connection creation #1697
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
base: main
Are you sure you want to change the base?
Conversation
zeenix
left a comment
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.
Didn't look very thoroughly yet but looks good to me in general.
zbus/src/address/transport/ibus.rs
Outdated
| use crate::{Address, Result, process::run}; | ||
|
|
||
| #[derive(Clone, Debug, PartialEq, Eq)] | ||
| #[non_exhaustive] |
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 dind't know you can use this attribute on a struct. Does it make it so that people can't assume the fields? 🤔
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.
Yep and the user must use the provided constructor but thinking about this more, I think I will just remove it..it's a zero-sized unit struct with no fields, so there's nothing to be "exhaustive" about. I think I just instintively matched launchd's struct (which actually has fields)
| /// | ||
| /// # Example | ||
| /// | ||
| /// ```no_run |
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 think we should run the test, if possible. We can make it linux-specific and install/launch ibus in the linux test job in the CI (or we can mock the server side too, if we want it to be reliable and runable anywhere).
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.
How would we integrate this into CI? Just getting the deps for ibus sounds like a pain unless you're familiar with methods to do so
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 getting the deps for ibus sounds like a pain unless you're familiar with methods to do so
apt-get install package-names.. like we already do? 😉
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.
Whattt lol. I didn't even know you were running dbus in CI. I've been trying to get NetworkManager to run in my CI forever..though maybe they don't work the same since nm needs a network device..
Implement `connection::Builder::ibus()` for connecting with IBus. The IBus address is fetched from the `ibus address` command, handled similarly to how we handle the `launchd` address on macOS. Fixes z-galaxy#964
This PR implements
connection::Builder::ibus()for connecting with IBus. The IBus address is fetched from theibus addresscommand, and is handled similarly to how we handle thelaunchdaddress on macOS.Fixes #964