-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
desktop-file clarifications #802
Comments
as a side-note: the |
The --gui flag forces the program to run in GUI mode even when command switches are passed to it. (That's the mechanism that usually determines whether it should run in GUI or command line mode.) Until recently, it was of very limited use, since most command switches were ignored, so it was really only useful for development. That's changed with #934, so going forward you'll see it on the help screen. As for the deeplink stuff, and the way it's used in the desktop file, I'm afraid I'm of no help there. It's for the VirtualStudio side of things rather than the community led part of the project. You'd need to get clarification from one of the JackTrip Labs people. |
So where would I ask these ominous "JackTrip Labs people"? Do the follow this repository, or do they just do their own thing? |
They do follow this repository. @mattahorton and @dhing1024 might be your best bet. |
👋 The --deeplink flag allows us to pass |
It's been long enough since I updated the desktop file that I don't have clear answers on things like the shell or your other questions. I do know that the Exec line here is intended to pass the deeplink URL to the jacktrip process to open JackTrip and do things automatically for the user. Right now we only use it to join servers. |
is intended to pass the deeplink URL to the jacktrip process to open JackTrip and do things automatically for the user. Right now we only use it to join servers.
Could you give am example on how this works?
I can give am example from my side:
Dropping a PDF file on JackTrip opens a PDF-viewer.
Notably, it doesn't join a server of any kind (which would be astonishing anyhow, for a PDF...).
|
Haha. Yeah. That shouldn't work that way. That's likely an issue of me not being an every day Linux user. In this case, when you click a |
sorry if i appear dense, but how do you click these
i guess a Windows "shortcut" can point to a URL... |
It's a URL of the form There aren't really many other use cases for them (they don't serve a purpose when using Classic mode and they weren't meant to be shareable links), though I guess you could save a deeplink URL as a desktop shortcut if you found it useful. |
I updated parsing of deeplinks in #1203, eliminating the need for any of the bash stuff in the desktop file. |
The generated FreeDesktop
.desktop
file (on Linux) currently looks like this:my automatic checkers complained about the
/bin/bash
invocation inExec
, so I took a deeper look.afaict, there is really no reason to force the shell to
/bin/bash
- any POSIX compliant shell should do, so probablysh
should be used instead.also, I don't understand that second use of
/bin/bash
- afaict this is just a place-holder that is not used anyhow, and thus it is a bit confusing to read/bin/bash
here (as it somehow implies that/bin/bash %u
is going to be executed, which is never true).I would therefore suggest to change the
Exec
-key in the desktop to something like:(or even
Exec=sh -c "if [ -z ""\$"1" ]; then jacktrip; else jacktrip --gui --deeplink ""\$"0"; fi" %u
)the other question is: what exactly is the purpose of this invocation?
if i drag some file on my JackTrip application icon, this will just start jacktrip and open the file with the default handler for this file (e.g. a PDF-reader if i drop a PDF on the JackTrip).
I don't think this is very useful per se (at best it teaches anti-patterns to use JackTrip as a generic file-opening application).
i would have expected to be able to drop something like a configuration-file, but afaict, JackTrip doesn't really support config-files (at least I haven't found any documentation on how to create such a config-file).
finally, the .desktop-file mentions
application/jacktrip
andx-scheme-handler/jacktrip
as valid mimetypes. are these mimetypes a thing, or are they three "just in case"?ping @mattahorton
The text was updated successfully, but these errors were encountered: