LocalSend on Pocket?

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.

The release I grabbed is at https://github.com/localsend/localsend/releases/download/v1.17.0/LocalSend-1.17.0-linux-arm-64.deb

More information at https://localsend.org/

Thanks!

You could try running the program with these environment variables set:

MESA_GL_VERSION_OVERRIDE=4.2 MESA_GLSL_VERSION_OVERRIDE=420

Or when super desperate with software rendering:

LIBGL_ALWAYS_SOFTWARE=1
1 Like

Cool tool, which I didn’t know by now. Installed and it worked out of the box - on Pocket rk3588 / standard debian though.

Thanks, @josch!

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.

I think, you should roughly write a wrapper that sets the environment @josch suggested and execs localsend:

#!/bin/bash
export MESA_GL_VERSION_OVERRIDE=4.2
export MESA_GLSL_VERSION_OVERRIDE=420
exec /usr/bin/localsend_app

For example create a dir ~/bin/wrapper and do:

joe ~/bin/wrapper/localsend-wrapper

…joe is my fav editor, put in your code and save it by ctl+k x in case you use joe. Then make the script executable:

chmod +x ~/bin/wrapper/localsend-wrapper

You can execute your script from a terminal window. You then may write a gnome starter to lauch your wrapper from the gnome dock.

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.

did you install and set up flatpak first?

Yes, but just with the default “install flatpak” instructions.