Choose style:

Author Topic: Where to install games?  (Read 1538 times)

0 Members and 1 Guest are viewing this topic.

Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 136
  • Karma: 25
    • View Profile
  • Peppermint version(s): 7, 8
Where to install games?
« on: September 09, 2016, 03:37:05 pm »
I've had a weird issue recently - downloaded WarThunder from their website and installed it. Didn't go without issues, but it works. While installing it, I didn't really know which directory it's supposed to go. I found /usr/games and it seemed appropriate... except I couldn't get into it. So I ended up installing it on my Desktop(please don't laugh too hard).
So, is usr/games the right place to install games? And do you have to copy them there via the command line(or is there a way to get sudo privileges in GUI without a prompt? Only one I've thought of is invoking nemo with sudo, but that sounds like a bad idea)
This topic might fit better in the New Users section, but there's so much wind blowing through the Linux Gaming section that I'm putting it here. It's a game issue after all ;)
« Last Edit: September 09, 2016, 03:47:49 pm by Pikolo »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 18047
  • Karma: 2148
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: Where to install games?
« Reply #1 on: September 09, 2016, 04:01:27 pm »
I know nothing of warthunder, but can you not simply run it from the executable from a NON-elevated nemo window .. so it's run as the current user ?

run:
Code: [Select]
sudo apt-get install tree
now what's the output from:
Code: [Select]
tree /usr/games
I'm trying to find the path to the binary executable for warthunder

Or just tell me where you got it so I can download it and take a look
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline zebedeeboss

  • Trusted User
  • Veteran
  • *****
  • Posts: 1888
  • Karma: 420
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P8 x64 (Main) and P8 x64(Laptop)
Re: Where to install games?
« Reply #2 on: September 09, 2016, 04:34:41 pm »
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P8 x64 Desktop - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz - 32Gb RAM - NVIDIA GTX1060 6Gb - 43" 4k 3840x2160
P8 x64 Laptop - Intel(R) Dual Core i5-4200U - 8Gb RAM - Intel Integrated Graphics - 15.6" HD 1920x1080

Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 136
  • Karma: 25
    • View Profile
  • Peppermint version(s): 7, 8
Re: Where to install games?
« Reply #3 on: September 09, 2016, 04:43:39 pm »
I runs from the Desktop just fine, but having a hidden desktop folder makes me feel silly. Which is why I wanted to move it over to a more appropriate space. On Windows I just used C:\Games, on Linux \usr\games seemed equivalent

Code: [Select]
pshem@PiLenovo ~ $ tree /usr/games
/usr/games
0 directories, 0 files

The problem is NOT running the game. The problem is saving it outside the home directory... unless the recommended option is to make a Games folder inside Documents
« Last Edit: September 09, 2016, 04:50:22 pm by Pikolo »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 18047
  • Karma: 2148
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: Where to install games?
« Reply #4 on: September 09, 2016, 04:48:15 pm »
Oh .. so you haven't moved it yet ? (I thought you'd already installed it to /usr/games)

What's the output from:
Code: [Select]
ls ~/Desktop

Once I know the directory name we'll move it to /opt and create a launcher for it in the menu
« Last Edit: September 09, 2016, 04:49:58 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec


Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 136
  • Karma: 25
    • View Profile
  • Peppermint version(s): 7, 8
Re: Where to install games?
« Reply #5 on: September 09, 2016, 04:53:24 pm »
The directory is ~/Desktop/.WarThunder
Why to opt and not games?
it would not install to usr/games. Somehow, the installer worked without sudo.

I am honestly more interested in the locating convention than the instructions. I've actually just noticed that by right-clicking the folder icon, I can open it as root, and transfering it is east afterwards. Now I just need to see if it'll run the updater(it has an autoupdate program as a launcher) without root priveliges
« Last Edit: September 09, 2016, 05:02:06 pm by Pikolo »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 18047
  • Karma: 2148
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: Where to install games?
« Reply #6 on: September 09, 2016, 05:08:18 pm »
You could put it in /usr/games .. it is a user program and a game

but considering you ADDED it manually, I'd say it belongs in /opt .. optional add-on programs .. it's generally where you add stuff manually, but at the end of the day it's up to you.

http://www.thegeekstuff.com/2010/09/linux-file-system-structure

Realistically if it needs to update as a user it should stay in your home folder somewhere .. but you can add it to /opt (or /usr/games) then recursively take ownership of the directory
« Last Edit: September 09, 2016, 05:10:37 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 136
  • Karma: 25
    • View Profile
  • Peppermint version(s): 7, 8
Re: Where to install games?
« Reply #7 on: September 09, 2016, 06:58:19 pm »
In the end, I made a Games directory in my home folder. Updates are ~weekly, so moving it around doesn't seem like fun. I was also trying to make a desktop icon, to retire the link to launcher I've been using so far.

Made this this:
[Desktop File]
Encoding=UTF-8
Version=1.61.1.60
Name[en-US]=WarThunder
GenericName=War Thunder Launcher
Exec=/home/pshem/Games/WarThunder/launcher
Terminal=false
Icon[en-US]=/home/pshem/Games/WarThunder/gui/icon.png
Type=Application
Categories=Games;

Categories with the language don't highlight, and the file doesn't start the launcher. I presume I need to edit the launch category, but I am not sure how. Apps in /usr/share/applications look similar in Pluma, I'm not sure what is wrong. Paths are 99% correct, as they've been copied from the properties files of the executable and the icon.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4336
  • Karma: 935
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): Peppermint 8, 64-bit
Re: Where to install games?
« Reply #8 on: September 09, 2016, 07:22:50 pm »
You could also just install Steam and run War Thunder from there.  It installs it by default to:
Code: [Select]
~/.steam/steam

It's just a thought  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 18047
  • Karma: 2148
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: Where to install games?
« Reply #9 on: September 09, 2016, 07:39:01 pm »
If you're sure the paths are correct, try making it read
Code: [Select]
[Desktop File]
Type=Application
Name=WarThunder
Comment=War Thunder Launcher
Exec=/home/pshem/Games/WarThunder/launcher
Icon=/home/pshem/Games/WarThunder/gui/icon.png
Categories=Games;
if that doesn't work .. post the output from:
Code: [Select]
ls -a /home/pshem/Games/WarThunder
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec


Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 136
  • Karma: 25
    • View Profile
  • Peppermint version(s): 7, 8
Re: Where to install games?
« Reply #10 on: September 09, 2016, 07:49:10 pm »
No effect. System monitor doesn't show the launcher either.
Code: [Select]
pshem@PiLenovo ~ $ ls -a /home/pshem/Games/WarThunder
.                content                    linux64.zip      updater.blk
..               .gaijin_launcher_logs      mis.vromfs.bin   UserMissions
aces             gui.vromfs.bin             registry.blk     video
aces.vromfs.bin  lang.vromfs.bin            Replays          WarThunder
bpreport         launcher                   res              warthunder_old.yup
ca-bundle.crt    launcher.vromfs.bin        run              warthunder.yup
cache            levels                     sound            webUi.vromfs.bin
char.vromfs.bin  libfmodevent64-4.44.35.so  .start_app_logs
compiledShaders  libfmodex64-4.44.35.so     ui
config.blk       libsteam_api.so            updater
@Andy I support Project Apollo 1201 and have turned off DRM in Firefox. I am no RMS, but I have my ethics. Steam is a no-go

Edit: Just to be on the safe side: Should I transfer it to usr/share/applications, or should it also work from the desktop?
Edit2: "There was an error launching the application." So no difference there
« Last Edit: September 09, 2016, 07:57:20 pm by Pikolo »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 18047
  • Karma: 2148
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: Where to install games?
« Reply #11 on: September 09, 2016, 08:18:37 pm »
No it should work from the desktop .. in fact if it's broken here it'll be broken no matter where you put it

does
Code: [Select]
/home/pshem/Games/WarThunder/launcher
start the game when run in a terminal ?

how about
Code: [Select]
/home/pshem/Games/WarThunder/run
?

if not, does it throw an error ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 18047
  • Karma: 2148
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: Where to install games?
« Reply #12 on: September 09, 2016, 08:21:51 pm »
Okay, got it .. it's the top line in the .desktop launcher

it should read:-
Code: [Select]
[Desktop Entry]
Type=Application
Name=WarThunder
Comment=War Thunder Launcher
Exec=/home/pshem/Games/WarThunder/launcher
Icon=/home/pshem/Games/WarThunder/gui/icon.png
Categories=GTK;Game;

[EDIT]

Also fixed the bottom line .. in case you do decide to copy it to /usr/share/applications
« Last Edit: September 09, 2016, 08:25:07 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4336
  • Karma: 935
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): Peppermint 8, 64-bit
Re: Where to install games?
« Reply #13 on: September 09, 2016, 08:23:30 pm »
Quote
@Andy I support Project Apollo 1201 and have turned off DRM in Firefox. I am no RMS, but I have my ethics. Steam is a no-go
As I said, it was only a thought  ;).
« Last Edit: September 09, 2016, 09:19:04 pm by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Pikolo

  • Trusted User
  • Member
  • *****
  • Posts: 136
  • Karma: 25
    • View Profile
  • Peppermint version(s): 7, 8
Re: Where to install games?
« Reply #14 on: September 09, 2016, 09:19:12 pm »
does
Code: [Select]
/home/pshem/Games/WarThunder/launcher
start the game when run in a terminal ?

Type=Application? I knew I missed something crucial  ::)
Thank you very much for fixing this, PCNetSpec

@AndyInMokum I know. Suggestions are usually appreciated

The modified file runs the launcher, and upon putting into usr/share/applications adds it's self to the desktop. But it doesn't display the icon(for some reason, I can't launch the icon from the command line, it says access denied). I'll just put the icon into pictures and try again, unless there is a more appropriate place. What is more annoying, is that the created icon is called WarThunder.desktop (I thought it'd loose the extension. Am I getting it wrong?).

EDIT:Permission denied everywhere  - home/pshem/Pictures\Public\Games
Is there a folder intended for logos? Found usr/share/icons
Permission denied again! I surrender. How do you make applications pull their logos?


None of this is mission critical, so see you tomorrow
« Last Edit: September 09, 2016, 09:42:19 pm by Pikolo »