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 "Create desktop shortcut" feature. #1516
base: develop
Are you sure you want to change the base?
Conversation
update: QT6 version also doesn't have the option sadly. |
Great. For *UNIX you just need to write a .desktop file and place it in ~/.local/share/applications so this would be much easier |
I have built it on Windows, the option appears but it seems to not do anything. |
I have fixed the issues with the feature on Windows. |
5c00c96
to
1f07497
Compare
my bad, i forgor to switch branches. tested it again with the correct branch and it launches and works properly. |
I'm not big into the idea of including direct windows API calls in MainWindow.cpp, but this looks pretty cool |
Me neither, but I don't think anyone wants to spend time re-implementing |
I think the rest of the codebase has some weird edit: Actually that's part of the systeminfo library so it won't work. I would still prefer having one universal function and individually implementing it for each OS though, in a separate file perhaps. |
Personally, I would leave it there. If somehow there is a need more system |
The point I see is for future potential implementations that need system specific libraries. However you could be a gigachad and force whoever needs that to do it themselves |
I'd leave this as a draft until it gets implemented and tested on MacOS |
I will not be implementing this for Mac, as I have zero familiarity with it's internals. If someone wants to add support for it, a new PR can always be made. |
zased? |
Does it want Qt::endl? instead of just endl? Builds failing on qt6. |
1aaa878
to
4eb48cf
Compare
Does this work with flatpak and appimage? I don't really see how it could work with flatpak, and if it won't work with them then it should at least be disabled in the UI. Also, when you add the option to the instance toolbar, you're not checking whether the target is MacOS so the action will still be added, and when the MacOS user clicks it, it will create a .desktop file since in the actual function you only check for windows and then just #else and make a .desktop file |
This patch adds a way of adding a shortcut to directly start an instance. How this works is it uses the already existing "-l" command line option. This, however, has not been implemented for Mac, which is something that can definetly be improved in the future if anyone wants to work on it :^) Signed-off-by: xSlendiX <slendi@socopon.com>
This patch adds the ability to make working shortcuts on flatpak. However, this requires permissions to write files to the /home/Desktop directory. This means the flathub/org.polymc.PolyMC repository needs to be updated. Signed-off-by: xSlendiX <slendi@socopon.com>
This PR adds a way of adding a shortcut to directly start an instance as
requested by issues #1088 and #541.
It is important to note, however, that this feature has not been implemented
for Mac.
Right now, I need someone that is able to test whether they can get this to
build and run under Windows.