-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add start menu entries for portable applications #2299
Comments
We should look at arguments and settings for this particular scenario as well. Some command-line applications fail to run if they are executed without any arguments. For those applications, it doesn't necessarily make sense to have an icon. As stated in the linked thread, many portable applications with a GUI do make sense. Users should be able to specify in settings if they want an icon or not. The default behavior should be specified by adding a value in the manifest, but settings or an argument would override. |
I would propose adding a Proposal: InstallerSwitches:
Silent:
|
Upgrade:
DesktopIcon:
SwitchValue: <value>
SwitchMode: <enable/disable>
StartMenuEntry:
SwitchValue: <value>
SwitchMode: <enable/disable> This would allow for the arguments For portable apps, if the SwitchMode is enable, it will add it to the desktop/startMenu, otherwise it will not, and the arguments and user preference would override |
We could automate this by opening each in an action runner, and if it closes in less than a second, it does not get added, and if otherwise, it does. |
I know, that should be a manifest flag, and a bot can go through every portable WinGet package and open each app, and if it stays for more than 3 seconds, it’s a start menu app, then it closes it, repeat. |
I dont the desktop icon should be a seperate option, as desktops usually get cluttered or the user has to manually delete the shortcuts. |
The way scoop handles defining shortcuts in manifests is pretty simplistic: "shortcuts": [
[
"sil.exe",
"Sil"
],
[
"Sil 1.3 Manual.pdf",
"Sil Manual"
]
], https://github.com/Calinou/scoop-games/blob/master/bucket/sil.json I do hope this feature gets moved up since it's very important to enabling GUI apps that are distributed by zip without installers. edit: I should add that the "Scoop Apps" folder is always in the Start Menu - it can't be moved - so for the majority of people it "just works" as is. |
@Trenly this looks like a simple issue to do, and the lack of this is annoying many users around the globe. |
Looks can be deceiving, and @Trenly doesn't work at Microsoft. You can see how we prioritize work and this Issue doesn't have as much "obvious" (by count of 👍) support as many other community requests. Please be mindful of our Code of Conduct. |
I would also say this issue may not be as simple as it seems on it's face. There are a lot of questions to be answered such as
In all reality, this is a feature that will likely need to be Spec'd out (see https://github.com/microsoft/winget-cli/blob/master/CONTRIBUTING.md#to-spec-or-not-to-spec). |
As @superusercode already stated, this is not all too complex. All you need is to not have manifest maintainers add shortcuts for CLI or non-portable applications and state as much like scoop already does (everything in scoop is portable with default buckets). Or just have the maintainers define each portable application as portable or portable-CLI. Scoop uses start menu entries pointing to a /current/ symlink of the latest version folder. |
I came here after trying several ways to try and make my winget links (e.g. geekuninstaller and syncthingtray) show up in my start menu. It seems the start menu refuses to resolve all manner of symlink and junction, so I don't see a way to fold the Links folder into the start menu, and even if I did it wouldn't show the symlinks inside either. As a user, I would expect that if winget can create a symlink to an exe in its Links folder after installation, it can just as well pair every one of those symlinks with an lnk shortcut in a start menu folder. Don't really see why it needs to be any more complicated than that. If an app isn't really usable that way (like syncthing), it's not remotely as much of a problem as not having a shortcut to start a portable app at all. People will just learn once and not use the shortcut again. If someone's using winget they're already not exactly a computer novice who'd go around blaming the app for "not working". |
Description of the new feature / enhancement
As discussed in this thread, portable applications now have a specification which enables standalone executables to be installed and added to the PATH. However, it would also be nice if there was an option to allow start menu shortcuts to be created for these applications.
Proposed technical implementation details
The implementation would be pretty similar to how portable applications are added to the PATH, except instead of a symlink a shortcut will be created with a title as specified by the manifest, and placed at
%ProgramData%\Microsoft\Windows\Start Menu\Programs
for machine installations or%AppData%\Microsoft\Windows\Start Menu\Programs
for user installations. It might be a good idea in order to avoid conflicts to place shortcuts in a subfolder such as..\WinGet
.The text was updated successfully, but these errors were encountered: