-
Notifications
You must be signed in to change notification settings - Fork 259
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
Seemingly non-functional on PostMarketOS. #1897
Comments
Interesting. What form factor device is this? As in normal gnome shell or mobile? |
I'm running the normal PC/desktop/tablet Gnome Shell, I haven't tested with Phosh. |
Phosh definitely wouldn't work, I was thinking about the mobile version if gnome shell. I think I could get postmarketos going on some device during the next few weeks to check. |
Ah, I'm just using bone stock gnome shell yeah. |
You might want to check that you have openssl installed, although I don't think this should be the symptom exactly then. Does postnarketos nowadays ship with systemd? Or journald? If there's anything relevant looking in the normal system logs, that might be helpful |
When I installed PostMarketOS, I ended up with OpenRC, PmOS is currently transitioning from OpenRC to Systemd, and I'm not sure where they are in that process. Journald does not appear in my system either. PostmarketOS provides |
If you're not getting Mobile Settings, check that |
I can confirm that |
Hrm. And is the GSConnect daemon running? If not, what happens if you start it manually? ( |
(Fixed the path with my home directory in it, since that's unlikely to work for you.) |
Oh, and just to double-check, you DO NOT have |
I think you're onto something here! Usage: env [-i0] [-u NAME]... [-] [NAME=VALUE]... [PROG ARGS] Print current environment or run PROG after setting up environment
This looks to me that GSConnect isn't meshing well with BusyBox? I'm not sure enough to say that myself. I can also confirm that KDE Connect is not installed or running. I don't have any KDE or even Qt applications installed on here |
Github broke the markdown but you get the gist of it |
Aha! Yes. The problem is, then, that the first line of #!/usr/bin/env -S gjs -m ...and BusyBox If you edit that to this: #!/usr/bin/env gjs -m ...GSConnect should probably work better for you. Assuming BusyBox's ...The overall solution to this, though, becomes tricky. On systems that need the |
You'll also want to edit The solution there, though, is clearer. Internally, we should stop trying to run that as an executable, and instead launch |
Making the adjustments in both daemon.js and gsconnect-preferences, |
Crap. That means that BusyBox Well, in that case, you can edit those shebangs to instead be: #!/usr/bin/gjs -m That avoids involving BusyBox at all. It assumes the location of |
For the record, that does not appear to be possible in Gjs currently! How annoying. I've submitted a feature request. |
Awesome! |
I wouldn't mind hardcoding /usr/bin/gjs. IMO it's more important to support postmarketos out of the box than custom gjs interpreters in custom paths. The people who need that can do the necessary patching, e.g. I think nixos users already use gsconnect as packaged in nix? |
That may be the best option, ultimately. My feature request was marked as non-actionable; support for an equivalent to Node's Meanwhile, I floated another hare-brained idea on GNOME's Discourse: That If But that's gotten all of 10 views and no responses, so... not holding my breath. |
Now that I think about it, there is another option. We already have code (in If we were to include an additional simple "canary" script with a shebang line, like: #!/usr/bin/env -S gjs -m
function main() {
console.log("Success!");
return;
}
main(); Then, after we've ensured that that file had its execute bit set, we can attempt to execute it using
So, if that check fails, the startup code could then take the additional step of rewriting the shebang lines for all the other (three) executable files so they use (In fact, maybe it SHOULD fix the test script's shebang as well. That'll ensure the test succeeds on future startups (until GSConnect is updated). That way we can avoid wasting time at every startup, attempting to rewrite shebangs that have already been fixed.) Fortunately we don't support Windows, where modifying files that are open in the current process (because you're running the code they contain) tends to break. On Linux it should be fine, though. I don't relish writing a bare-bones JS implementation of |
Describe the bug
GSConnect Settings does not open, nor does the extension appear to be doing much of anything
Steps to reproduce
Quick Settings > GSConnect > Mobile Settings also does not work.
Expected behavior
GSConnect settings opens, error notifications about missing dependencies as needed, the usual first-run experience.
GSConnect version
58
Installed from
Extension Manager
GNOME Shell version
47
Linux distribution/release
PostMarketOS Edge aarch64
Paired device(s)
N/A
KDE Connect app version
N/A
Plugin(s)
N/A
Support log
Screenshots
No response
Notes
gnome-extensions info [email protected]
returns that the extension is enabled and it's current state is "active"when running
gnome-extensions prefs [email protected]
, the command returns no output and then exits to prompt.I originally was trying to use the extension on PostmarketOS's latest stable branch, which only has Gnome 46 for the time being still. I upgraded to Edge (which provides G47) in hopes of it working, but as you can see by this report, it does not.
The text was updated successfully, but these errors were encountered: