-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
snippetpixie: init at 1.2.2 #75472
snippetpixie: init at 1.2.2 #75472
Conversation
@worldofpeace I'm not clear on the etiquette, hope you don't mind me pinging you here, but just thought this PR might be one you'd be best equipped to review if you get a chance as I see you've worked on a lot of pantheon/elementary PRs? Apologies if this note is bad form, couldn't find any documentation on how to find a good reviewer for a new package. |
Oh it's not in bad form in all. Actually, you've found the perfect person because I maintain pantheon in nixpkgs, and also can co-maintain any elementary appcenter application. In the future I hope we add maintainer teams so people can discover who to request reviews on a certain domain. |
It also seems you've by in large authored this That's pretty cool, thanks for submitting it to nixpkgs 👍 |
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.
Everything seems good, left some comments on style and few adjustments.
I ran this locally and I did notice a warning immediately
(com.github.bytepixie.snippetpixie:18392): dbind-WARNING **: 05:47:48.982: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-RGR4C0/socket: No such file or directory
(com.github.bytepixie.snippetpixie:18392): dbind-WARNING **: 05:47:48.985: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-HDX3C0/socket: No such file or directory
(com.github.bytepixie.snippetpixie:18392): dbind-WARNING **: 05:47:48.985: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-UGB4C0/socket: No such file or directory
(com.github.bytepixie.snippetpixie:18392): dbind-WARNING **: 05:47:48.985: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-DL03C0/socket: No such file or directory
(com.github.bytepixie.snippetpixie:18392): dbind-WARNING **: 05:47:48.986: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-HCZ3C0/socket: No such file or directory
(com.github.bytepixie.snippetpixie:18392): dbind-WARNING **: 05:47:48.986: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-V033C0/socket: No such file or directory
(com.github.bytepixie.snippetpixie:18392): dbind-WARNING **: 05:47:48.986: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-WIZ3C0/socket: No such file or directory
(com.github.bytepixie.snippetpixie:18392): dbind-WARNING **: 05:47:48.987: AT-SPI: Unable to open bus connection: Failed to connect to socket /run/user/1000/at-spi2-DE53C0/socket: No such file or directory
and this does appear to have scattered several at-spi2-*
temporary directories.
I do have at-spi-bus-launcher
running.
Another warning was
** (com.github.bytepixie.snippetpixie:19326): WARNING **: 05:53:30.036: Application.vala:821: Could not find desktop file with name: com.github.bytepixie.snippetpixie.desktop
This is weird because DesktopAppInfo
should work because the docs state
https://valadoc.org/gio-unix-2.0/GLib.DesktopAppInfo.DesktopAppInfo.html
GIO is looking for a desktop file with this name in theapplications
subdirectories of the XDG data directories (i.e. the directories specified in theXDG_DATA_HOME
andXDG_DATA_DIRS
environment variables).
and to support running applications uninstalled, for purity, our wrapper scripts set
export XDG_DATA_DIRS='/nix/store/fyajylfficz2kd1lnbbrg4yk4xyl2lw2-snippetpixie-1.2.2/share'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS
Thanks for the review @worldofpeace, hopefully I've addressed most of your feedback.
Hmm, I don't see all the warnings you see, but I suspect I'm running the build differently...
I don't get this warning either, the desktop file is created dynamically if missing, for me that's in ~/.config/autostart/. So I think that's because I've just tested it as per the quick start guide after a How do you build/install/test so that I can try and reproduce? |
@ianmjones You can run it like
and I think it should be reproduced in nix-shell too
Oh, I didn't emphasize enough that it's run uninstalled. That's why I mentioned that application is wrapped to have the nix store path with its XDG_DATA_DIR. Edit: Completely forgot I've disabled at-spi in Pantheon due to defunct bugs. Ignore that warning. |
I tested it installed and the
error goes away. Though for the reason at
the child process (the actual program) will inherit adding the |
@worldofpeace Thanks for the steps to reproduce the error, I can reproduce, but I also have no idea why it doesn't find the default desktop file that's right there in When running the installed version all seems to be fine, I get a properly generated For example, I got that shrug above with my |
Yeah, it has me confused also, should just work. I think we can add the issue to your tracker and merge, since it does function as expected installed. @ianmjones Could you rewrite your history to #75472 (comment)? |
@worldofpeace If I recall correctly from my experiments with the interface, it also does some validation. Most notably whether the command referenced in |
Found the code in question for glib Guess this will be an issue for glib and nixos, so I guess that's out of scope per this PR. |
91fea7d
to
374d587
Compare
@worldofpeace Had a go, first time I've ever done that, so hopefully it's ok? I applied the maintainer list change first in the pick list, but it's date puts it second, hopefully that's not an issue. |
Yeah, that's just github being silly. It as actually ordered before the |
Motivation for this change
Add Snippet Pixie as a Nix package.
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)Notes
services.gnome3.at-spi2-core.enable = true;
on NixOS if not already up and running in WM/DE.