I’m trying to get LocalSend on all my devices, and wonder if anyone has gotten that running on the Pocket Reform. When I launch it from the pre-built package, I get a message: “Unable to Create GL Context.”
I can pull code and poke at it another day, but if someone has already looked at it, I’ve got plenty of other projects in the queue.
Yeah, it’s a handy tool. Apple’s AirDrop, but for all the other platforms, which as I’m moving away from Apple stuff, is handy functionality that I’m used to.
I probably use it a dozen times a day to get a URL from one machine to another, or copy an SSH key around, or whatever.
I’m unsure where the best place to set those are so they don’t apply to any other apps (and do apply to /usr/share/localsend_app ). Someplace in .config, or is there a way to set an application-specific variable in /usr/share/gdm/… ?
On the command-line, I’m fine, but rusty. Still learning my way around these new-fangled graphical desktops.
Yes, you can write a wrapper script as @habasud suggests but before you do it, you may want to verify that these environment variables actually fix your problem.
You can run a command with a certain set of environment variables set either by running:
FOO=bar myprogram
Which will run myprogram with FOO set to bar or you use the env command which allows you a bit more control over the environment your program runs in like so:
env FOO=bar myprogram
I’d experiment with the environment variables I suggested on the terminal until you find a combination that works. Maybe they do not make a difference at all.
I just tried installing this on a Reform (not IMX based tho) and it installed and ran perfectly. I installed through flatpack as listed on LocalSend - Downloads tho instead of the .deb
Hadn’t gotten to this until today, but I uninstalled using apt, and reinstalled using both the “software” app and using flatpak directly, and I still get the “Unable to create a GL context”
I’m sure there’s some clever way to set the environment variables for flatpak-installed apps (the man page points me to /etc/flatpak, which doesn’t exist), but I’m not half clever-enough to find it.
Note that however LocalSend got installed, it’s not in /usr/bin or /usr/local/bin or any other path in my $PATH, so I’m not sure where to poke. “which localsend” and “which localsend_app” both come up empty.