-
Notifications
You must be signed in to change notification settings - Fork 6
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
double clicking to run #10
Comments
Hi! Sorry, but this script only installs the jdk, it doens't automate any kind of |
I ran into the same issue, so just wanted to document/walk through my experience. After successfully installing the jdk, I was able to run my program with
Trying to make it simpler to launch the application (add to Steam as non-Steam game or by double-clicking instead of typing) I made a RunGame.sh with
It worked on my laptop with openSUSE Tumbleweed but did not on my Steam Deck. Running the script in Konsole it said
I added the new line to .bash_profile with the suggestion above
but nothing changed for me until restarting. After restart, RunGame.sh ran correctly in desktop mode. It launches and works through Steam as a Non-Steam game in desktop mode.
In gaming mode, however, it launches and crashes. In addition, I had a script to have a "desktop mode" in gaming mode. Trying RunGame.jar through Konsole in the nested "desktop mode" returned the same error. I'd imagine it could be a gamescope/wayland or whatever conflict with my specific app, but I am out of my depth even guessing. Thank you guys for the jdk script and the additions! |
Hi @Anthonyn56 ! I'm glad that my script helps you :) About your issue... Could you describe me what game or program are you trying to run? Or if you're using a guide, link it here so I can see your use case. I've just tested what you said. I created a file in the desktop named #!/bin/bash
clear
echo "testing java version"
java -version
echo "did you see it?" Then I set the file as executable, you can do it from the terminal or from the desktop UI, it doesn't matter: And then added the game to steam as a non-steam game. If I run the "game", nothing happens since everything I'm executing in the script is really intended for a shell output, but if I run steam from a terminal*... I can check what it says. So please, try doing the same so I can help you debugging what's happening here. If you post me the entire log of steam for some reason, please make sure there's no personal information. If you miss something I'll delete your post, but please check it before posting. BR *You just need to type |
Sorry, about that, got bombarded with tests, and this kept getting pushed back and back. |
i wan't able to run a shell script with java inside by double clicking. unless i added "[[ -f ~/.profile ]] && source ~/.profile" to .bash_profile. also to run a jar by double clicking I need to fix java.desktop "Exec=/home/deck/.local/jdk/jdk1.8.0_391/bin/java" by adding "-jar %f" like "Exec=/home/deck/.local/jdk/jdk1.8.0_391/bin/java -jar %f"
The text was updated successfully, but these errors were encountered: