-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
Allow the user to create a shortcut on the desktop and/or application folder #2966
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
1727f56
to
59efca7
Compare
Also for systems like Flatpak where we can't get the desktop or applications path I think this option/action should be just one(ask the user where he wants the shortcut to be created). |
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Alright, I've just pushed the suggested changes. It works on windows, but I haven't tested for linux and can't test for macOS. |
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
I don't think this currently works with macOS; AFAIK, in macOS,
Personally, I think this should be simple enough to implement correctly; maybe just making If you can't test for macOS, I can offer some assistance as I have a macOS system (aarch64) on hand. |
if (DesktopServices::isFlatpak()) | ||
on_actionCreateInstanceShortcutOther_triggered(); | ||
else | ||
on_actionCreateInstanceShortcutDesktop_triggered(); |
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.
Also, maybe it is more intuitive to add a settings item to determine the default shortcut creation location instead of pre-determining it like this?
(Just my 2c, feel free to ignore)
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.
Trial97 requested for the setting to removed, and I agree that it's not needed
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.
Looks pretty good and worked on my Windows install!
However the macos implementation should be updated to support the desktop too... also maybe make the windows implementation put it in a start menu folder named LAUNCHER_NAME Instances too :P. I don't think you can do the same on Linux and have it work for all desktop environments though
Also it crashed for me the first time on windows but I'm not sure if you introduced this bug since I could not reproduce it again
Alright thanks for the feedback! Unfortunately I'm busy right now but will try to implement the changes in the next two weeks |
I was just posting the other ideas for the sake of it, no need to implement them in this pr |
Didn't express myself correctly 😅 meant the suggestions / fixes for mac. |
I'm pretty sure macOS is very similar to Linux in these regards:
So, basically, the only difference between the three is the target directory, which actually follows the same convention as Linux afaik. |
That should work, yes |
I think creating shortcuts for MacOS should work now but couldn't test |
Seems to working pretty well for macOS! |
Nope, missed that think my editor removed the newline, will undo |
I'm adding info for the ideas here because I couldn't find a dedicated issue yet. |
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
145ac6c
to
c4ba7fc
Compare
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
It seems that shortcuts.vdf should be modified while the Steam client is not opened? This way there should be no refresh issues... |
I guess so, but that would get annoying for the user. What I observed is that the shortcuts file gets refreshed when adding the shortcut |
Oops, I forgot. |
@@ -779,8 +738,7 @@ | |||
</action> | |||
<action name="actionViewCatPackFolder"> | |||
<property name="icon"> | |||
<iconset theme="viewfolder"> | |||
<normaloff>.</normaloff>.</iconset> |
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.
The QT-Editor removed the <normaloff>
tag for every icon. Is that okay or should I try to undo?
This pull requests adds the option for the user to select in which folder they want to create their shortcut.
(See issue #639 )
I've tested on windows but couldn't test it for linux / flatpak / AppImage / macos. But it should also work there