-
Notifications
You must be signed in to change notification settings - Fork 239
Description
With VLC having bought-in wholesale to Canonical's Snap packaging ecosystem (I'm decidedly not a fan for a host of reason including [but not limited to]: increased storage overhead, atrocious integration with AppArmor, old snapshots lingering after updates with no garbage collection, the eighth circle of app theming hell) it might be time to build an awareness into the install process for both types so that it can correctly locate the Lua script where it will be seen and used. I've been doing this manually with each SyncPlay install/upgrade and it's no biggie, but the project can't gain more widespread adoption without supporting less geeky users.
The two installation folders being:
- /usr/lib/x86_64-linux-gnu/vlc/lua/intf
- $HOME/snap/vlc/current/.local/share/vlc/lua/intf
I would think a simple if statement for each would suffice. My first thought for those is to use which vlc to trigger the install inside /usr since snaps don't place binaries inside the environment's PATH variable (can you hear my grumbling across the internet over that?) the which command will exit with code 1 if the Snap package was used and that location isn't polled by the app.
For testing if the Snap package is present the solution seems less elegant, requiring piping the output of snap list to grep -q -E "^vlc" to produce a Boolean response to a query for its presence.
Anyhow, thanks for making a nifty open-source tool and maintaining it for all these years and I hope my thoughts here don't come across as presumptuous or too dumb. I don't even recall how I found Syncplay to begin with (TWiT show, maybe?) but it's a handy thing to have in my bag of tricks when the need arises.