Just a silly thought - were you expecting uname to be replaced with your username? Even using Exec=~/.local/bin/scriptname would be better, but simpler is to just use your name directly. And, to reiterate - are you sure the script is executable? I didn’t need to be for the bash -c construction, but otherwise…
If this is too obvious for words, just keep in mind it is the sort of thing I have done in the past
I was pretty sure it wasn’t needed! Can’t think why it isn’t working though - I have several such things going, and never have any trouble getting them to run. Full paths are all you need…
This is the important bit. If it works in the terminal, it should also work with the desktop file. Most common mistake sometimes is that desktop files aren’t updated/refreshed even after editing them. You should go with the script and desktop file method
…and reboot/install dex and then run dex path_to_file.
Same deal here unfortunately. Running dex path_to_file in a terminal emulator works. Running dex path_to_file from rofi or a window manager does nothing.
Yes but I was questioning the syntax, including uppercase & lowercase letters. If /usr/local/ and all that stuff doesn’t work then it’s a mess. Wine is a pain in the ass!
That most likely means what you are doing relies on something that doesn’t exist in your environment but does exist in a terminal environment. That is why “calling the script via rofi spawned from a terminal emulator works” and “calling the script from rofi running via Awesomewm fails”