-
Notifications
You must be signed in to change notification settings - Fork 113
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
Linux desktop entry filename fix #91
Linux desktop entry filename fix #91
Conversation
…ath` no need to overwrite `name` options with filename on Linux ..plus test fixes Teamwork#90
.. to be able to use it until Teamwork#91 is merged
would love to see that merged |
Hi @artemv This PR has been rotting for a long time. I'm working on improving the auto-launch experience on Linux. I'll review the PR later tonight. A quick look seems ok. |
I see that you removed Linux and BSDs from any name changes from fixOpts, am I right? I also see that you moved the path separator treatment either under Windows or macOS. This makes sense. However, what I'm wondering right now is why would we change the appName in the first place. The "name" parameter is mandatory when calling the constructor, so why are we not respecting this. This appName can be anything under Windows and my understanding is it can also be anything on macOS. The only concern we must have is with "reserved characters" like spaces in the appName. Under POSIX derived OSes, the filename must be properly escaped in a path, while the appName can contain spaces in the data we write to the .desktop (Linux) or .plist (macOS) file. Your test shall then be applied to all OSes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a comment about keeping the appName provided to the constructor under Linux.
Side note: we should consider doing the same for other OSes. The name provided should be honored and there is no technical reason to not do it.
path
, notname
#90This changes things for Linux so that the desktop entry file is now named
${name}.desktop
instead of previous${pathFilename}.desktop
, so if previous version of app-launch worked for the same app this version will add another desktop entry. This will cause OS to run 2 app instances on user login unless app is set up as singleton, which may cause issues - so this should be a major version update.