Skip to content
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

Question: Linux Support? .appimage? (SOLVED) #4

Closed
dillacorn opened this issue Jul 23, 2024 · 8 comments
Closed

Question: Linux Support? .appimage? (SOLVED) #4

dillacorn opened this issue Jul 23, 2024 · 8 comments
Labels
linux SnapKey on Linux question Question about SnapKey wontfix This will not be worked on

Comments

@dillacorn
Copy link

dillacorn commented Jul 23, 2024

SOLVED: #4 (comment) <- Click

As the title requests. Can an .appimage be compiled to operate under a Linux environment?

I'll be understanding if this doesn't work on a Wayland session such as (Sway).

Maybe the application could work on i3 (X11/Xorg Session) ?

@cafali
Copy link
Owner

cafali commented Jul 23, 2024

The code is specifically designed for Windows, utilizing the Windows API to manage keyboard input and system tray interactions. Consequently, it will not run on Linux systems without modifications.

Currently, I am not looking to convert or rewrite the code for Linux, as there are additional features planned for the future. Additionally, my knowledge of Linux software development is limited. ...sorry

@cafali cafali closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
@dillacorn
Copy link
Author

No problem! I hope a Linux solution eventually comes along.

@cafali cafali added question Question about SnapKey wontfix This will not be worked on labels Jul 23, 2024
@cafali cafali changed the title Linux Support? .appimage? Question: Linux Support? .appimage? Jul 25, 2024
@dillacorn
Copy link
Author

dillacorn commented Jul 25, 2024

Guide for SnapKey on Linux!

Using Flatpak Steam + Flatpak steamtinkerlaunch

Step 1:

INSTALL steamtinkerlaunch <- using flatpak version

flatpak install com.valvesoftware.Steam.Utility.steamtinkerlaunch

Step 2:

Example directory:
/home/dillacorn/.var/app/com.valvesoftware.Steam/SnapKey

  • Create folder and place config.cfg and SnapKey.exe in a folder under the Steam directory.

Step 3:

  • Launch the game with steamtinkerlaunch and hit the spacebar when the launcher opens.
  • Click "GAME MENU"

Step 4:

GUI options

  • Requestor timeout: 5 <- change to this #

Step 5:

MISC options

  • Check "Use custom command"
  • Check "Fork custom command"
  • Uncheck "Use Steam Linux Runtime with Custom Command"
  • Add SnapKey.exe as executable for the custom command

Step 6:

Proton options

  • Selecting working proton version (for game)

Step 7:

Tools options

  • Enable "gamemode"

Step 8:

  • Click "SAVE AND PLAY"

Enjoy 😊

TROUBLESHOOTING

game not launching?

To add, this is a short rant!

I spent at least 3 days troubleshooting and trying to get SnapKey to work on my Gamakay TK68 HE. I want to thank the developer for writing an awesome program that doesn't use AutoHotkey! 😊

I did find an AutoHotkey solution that worked, but I'd suggest avoiding that solution if possible, especially for competitive games that use anti-cheat.

@cafali
Copy link
Owner

cafali commented Jul 26, 2024

That's fantastic news! I'm really glad to hear it's working smoothly for you on Linux with Proton.
I hope your detailed steps make it clear for anyone else trying to set it up!

Enjoy using SnapKey, and thanks a ton for the appreciation! It means a lot!

PS. I have added a reference to your guide in the README file. Great job!

@cafali cafali added the linux SnapKey on Linux label Jul 26, 2024
@dillacorn dillacorn changed the title Question: Linux Support? .appimage? Question: Linux Support? .appimage? (SOLVED) Jul 28, 2024
@tom-jm69
Copy link

Would this also work w/o the flatpak steam version?

@dillacorn
Copy link
Author

dillacorn commented Aug 18, 2024

@Tom-jm03

Would this also work w/o the flatpak steam version?

Flatpak steamtinkerlaunch is not compatible with non-flatpaked Steam...

You will need to install steam tinker launch from your repo provider or through github for your specific distro.

The directories navigation will be slightly different.. If you're using non-flatpak Steam, Steam already has access to your entire file system so place SnapKey.exe + its configuration files in the directory of your choice and follow the rest of the directions from the post for adding SnapKey.exe as a custom command.

Reason I'm using flatpak versions is primarily high compatability and I've personally found there to be no downsides... Unless if you're using an Nvidia GPU which just came to mind..

I want to add I've concluded from using Linux for a long time that flatpak steam is perfectly fine as it packages the latest mesa drivers and through extensive testing has been more flexible in use with every DE and WM that I've tested and used.

"every DE and WM that I've tested and used" includes

  • GNOME
  • KDE 5/6
  • XFCE
  • DWM Flexipatch
  • i3
  • Sway

Let me know if you have any more questions I should be able to help.

@Kyr4l
Copy link

Kyr4l commented Aug 31, 2024

the SnapKey.exe process doesn't kill itself once the main process dies, meaning that it has to be killed manually after each session, otherwise steam will display a RUNNING status…
does anyone knows a way to kill the SnapKey.exe process once a game is stopped ?

@dillacorn
Copy link
Author

dillacorn commented Sep 1, 2024

the SnapKey.exe process doesn't kill itself once the main process dies, meaning that it has to be killed manually after each session, otherwise steam will display a RUNNING status…
does anyone knows a way to kill the SnapKey.exe process once a game is stopped ?

If you click "STOP" in Steam it should close the game and any process related to it. I have noticed this behavior but I don't know a solution.. It's not that big of a deal as long as you know you need to also STOP the game within Steam Client as well..

Maybe there is a configuration/setting within steamtinkerlaunch to achieve the behavior you're seeking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux SnapKey on Linux question Question about SnapKey wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants