Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I can play the Battle for Wesnoth by root only [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Sat May 05, 2012 4:44 pm    Post subject: I can play the Battle for Wesnoth by root only [Solved] Reply with quote

I cannot run the Battle for Wesnoth 1.10 by a normal user. I run the game so and it says me the error:
Code:
$ /usr/games/bin/wesnoth
Battle for Wesnoth v1.10.0
Started on Sun May  6 19:34:15 2012


Data directory: /usr/share/games/wesnoth
User configuration directory: /home/user/.config/wesnoth
User data directory: /home/user/.local/share/wesnoth/1.10
Cache directory: /home/user/.cache/wesnoth
20120506 19:34:16 error filesystem: Trying to open file with empty name.
20120506 19:34:16 error config: Could not open file
could not initialize fonts

But the game starts and works normally if I run it by the root.
The game settings are identical in the root and in the user.


Last edited by ultraincognito on Mon May 07, 2012 11:37 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4611
Location: Saint Amant, Acadiana

PostPosted: Sat May 05, 2012 5:44 pm    Post subject: Reply with quote

Make sure your user is in games group, remove all directories Wesnoth created in your home, try again.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Sun May 06, 2012 6:44 am    Post subject: Reply with quote

Jaglover wrote:
Make sure your user is in games group.

I'm sure.
Jaglover wrote:
remove all directories Wesnoth created in your home

I've done.
Jaglover wrote:
try again.

I tried, but it didn't give any results.
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4611
Location: Saint Amant, Acadiana

PostPosted: Sun May 06, 2012 11:21 am    Post subject: Reply with quote

Create a test user. Log on as this test user and try to start Wesnoth. Do your test user experience same problem?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Sun May 06, 2012 2:36 pm    Post subject: Reply with quote

Test user gets this error too.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8844

PostPosted: Sun May 06, 2012 7:03 pm    Post subject: Reply with quote

What does dev-util/strace show to be different between the root and non-root cases?
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Mon May 07, 2012 11:37 am    Post subject: Reply with quote

2141th (of 2232) string of the strace output contained:
Code:
stat64("/usr/share/games/wesnoth/data/hardwired/fonts.cfg", 0xbf8ed89c) = -1 EACCES (Permission denied)

I found that I haven't an access to the /usr/share/games/.
I set:
Code:
chmod -R 775 /usr/share/games/

And now I can play this game by the normal user.
My problem is solved. Thank. You helped me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum