yeah, multiple people have had their openUrl event not work without any clear reason why, it uses Ta

yeah, multiple people have had their openUrl event not work without any clear reason why, it uses Tauri’s shell::open API and should just open in the browse, I don’t really get it
14 Replies
Percy_Ikana
Percy_Ikana4mo ago
Sorry, didnt see the notifs for that, justy got back to my computer
thomasvs
thomasvs4mo ago
ah, so the plugin asks opendeck to open the url? Could the url it's wanting to open be logged in the opendeck log?
ninjadev64
ninjadev64OP4mo ago
In this particular case, yeah That would only be a temporary fix, I would like to get it just working - I'm thinking that an upgrade to Tauri v2 may fix it but I don't want to upgrade now and publish a stable release only to have to publish another release once Tauri's v2 is out of RC in a few weeks Maybe I'll just replace the implementation with what the open-rs crate that Tauri uses says it does anyway:
# macOS
$ open <path-or-url>
# Windows
$ start <path-or-url>
# Linux
$ xdg-open <path-or-url> || gio open <path-or-url> || gnome-open <path-or-url> || kde-open <path-or-url> || wslview <path-or-url>
# macOS
$ open <path-or-url>
# Windows
$ start <path-or-url>
# Linux
$ xdg-open <path-or-url> || gio open <path-or-url> || gnome-open <path-or-url> || kde-open <path-or-url> || wslview <path-or-url>
that lib's purpose is to support a lot more platforms than just those three, so it's not useless, but an implementation for just 3 would suffice for OpenDeck although if it really does just end up doing the same thing, I don't know if it would fix the issue
thomasvs
thomasvs4mo ago
that with some logging sounds like something that would work. Happy to test here once that is built
ninjadev64
ninjadev64OP4mo ago
^
thomasvs
thomasvs4mo ago
Following up on this issue. I reinstalled OpenDeck on my laptop where most plugins fail to install. Same issue. Went back one version. Same issue. I went to the site you mentioned, I can see all the plugins. I downloaded the spotify by hand and unzipped it in .config/com..../plugins, but on restarting opendeck it doesn't see the unpacked plugin. Possibly I have to add it to some registry by hand? Anything else I can do to help debug this issue?
ninjadev64
ninjadev64OP4mo ago
hey @ThisIsNorsense!
thomasvs
thomasvs4mo ago
I'm thinking of how to reuse configuration across machines. I notice that each profile json has a context field that encodes the streamdeck identifier. Is that necessary if the file is already under a directory with the streamdeck identifier in it? will it break if I don't change that context field when copying configs to a different machine with different streamdeck of same model?
Percy_Ikana
Percy_Ikana4mo ago
You can just find/replace the serial number and it works
ninjadev64
ninjadev64OP4mo ago
yeah, you can either find/replace as Percy said or use the import and export buttons in the profile manager which do the replacement automatically
thomasvs
thomasvs4mo ago
I guess my question is, why do you need the id of the streamdeck in that file to begin with? It'd be nice if you could just reuse config across machines by putting it in the right sd-XXXX directory
ninjadev64
ninjadev64OP4mo ago
this context value is used to identify an action instance and is sent to plugins so that when plugins need to modify an instance, they can specify which one. it is also used heavily within OpenDeck to identify instances across the entire codebase
thomasvs
thomasvs4mo ago
right- but couldn't the code construct the right context value from the directory the profile is in and the second part that doesn't include the streamdeck id?
ninjadev64
ninjadev64OP4mo ago
I guess I could theoretically use a custom serialiser and deserialiser when writing to profile files (not sure if serde allows using multiple serialisers for one struct, but I could take a look)
Want results from more Discord servers?
Add your server