View previous topic :: View next topic |
Author |
Message |
ultraincognito Guru
Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Sat May 05, 2012 4:44 pm Post subject: I can play the Battle for Wesnoth by root only [Solved] |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
ultraincognito Guru
Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Sun May 06, 2012 6:44 am Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
ultraincognito Guru
Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Sun May 06, 2012 2:36 pm Post subject: |
|
|
Test user gets this error too. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sun May 06, 2012 7:03 pm Post subject: |
|
|
What does dev-util/strace show to be different between the root and non-root cases? |
|
Back to top |
|
|
ultraincognito Guru
Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Mon May 07, 2012 11:37 am Post subject: |
|
|
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 |
|
|
|