Bug 23641

Summary: Openarena fails to start from the Programs menu but works by running ./usr/lib64/games/openarena.x86_64
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: José Jorge <lists.jjorge>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: marja11
Version: 6   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: openarena CVE:
Status comment:

Description Kristoffer Grundström 2018-10-06 00:22:39 CEST
Description of problem: I noticed that in order to start openarena I need to manually go to /usr/lib64/games/openarena/ and run ./openarena.x86_64 for the game to start.

Version-Release number of selected component (if applicable): 0.8.8-11

How reproducible: All the time.

Steps to Reproduce:
1. Open a terminal.
2. Login as root.
3. Type urpmi openarena --auto and hit Enter/Return.
4. Click on Programs -> Games ->OpenArena and the game won't start.
5. Type rpm -Vv openarena to verify that the package isn't broken.
6. Logout as root by typing exit and hit Enter/Return.
7. Type openarena and hit Enter/Return button to start the game.
8. The game doesn't start.
Comment 1 Marja Van Waes 2018-10-06 10:08:06 CEST
Assigning to the registered maintainer.

Assignee: bugsquad => lists.jjorge
CC: (none) => marja11

Comment 2 José Jorge 2018-10-06 14:09:19 CEST
Sorry, I cannot reproduce. The launcher is  /usr/games/openarena, please ensure it contains the same :

#!/bin/sh
cd /usr/lib64/games/openarena
exec ./openarena.x86_64 $*
Comment 3 Kristoffer Grundström 2018-10-06 15:16:06 CEST
It does contain the same as yours, but the only working solution for me is to run it from terminal by cd'ing to /usr/lib64/games/ and then run ./openarena.x86_64
Comment 4 José Jorge 2018-10-06 15:59:01 CEST
(In reply to Kristoffer Grundström from comment #3)
> It does contain the same as yours, but the only working solution for me is
> to run it from terminal by cd'ing to /usr/lib64/games/ and then run
> ./openarena.x86_64

That's exactly what this script does, can you test if it is the exec that fails?
Comment 5 Kristoffer Grundström 2018-10-07 00:54:52 CEST
Well if I begin to type opena and then tap the Tab button it doesn't autocomplete into openarena and if I double tap it there's no exec for openarena to run.

[kristoffer@localhost 14.1]$ open
open                    openconnect             openjade                openssl                 openvt                  
openal-info             opengl-game-wrapper.sh  openoffice.org          openvpn
Comment 6 José Jorge 2018-10-07 09:23:53 CEST
It seems you don't have /usr/games in your path... which is the default for mageia users.

Post the result of /usr/games/openarena.
Comment 7 Kristoffer Grundström 2018-10-07 17:02:25 CEST
echo $PATH confirms that:

/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin

However, AlienArena works perfectly fine though.
Comment 8 José Jorge 2018-10-07 21:19:43 CEST
(In reply to Kristoffer Grundström from comment #7)
> echo $PATH confirms that:
> 
> /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/lib64/qt4/
> bin:/usr/lib64/qt5/bin
> 
> However, AlienArena works perfectly fine though.

Okay, so this is not a openarena bug : by someway you have changed your settings.

Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 9 Kristoffer Grundström 2018-10-07 21:46:47 CEST
Changed WHAT setting? This is what the path looked like even AFTER I installed openarena.
Comment 10 José Jorge 2018-10-08 08:46:47 CEST
(In reply to Kristoffer Grundström from comment #9)
> Changed WHAT setting? This is what the path looked like even AFTER I
> installed openarena.

Openarena does not change the $PATH of users. I suggest you try to :
- create a new user, try to launch openarena
- I you have 4GB of RAM : boot a live USB of Mageia, install openarena without installing the system to the disk, ensure here it works.