Skip to content
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

Can't run the package on Archlinux #2

Open
KopfKrieg opened this issue May 20, 2018 · 2 comments
Open

Can't run the package on Archlinux #2

KopfKrieg opened this issue May 20, 2018 · 2 comments

Comments

@KopfKrieg
Copy link

I'm using flatpak 011.7-1 on an up to date Archlinux installation. Other flatpaks I've installed for testing (Steam, Minitube, X Moto) work fine. When I'm trying to start the game, following error message occurs:

$ flatpak run net.sourceforge.atanks
Atomic Tanks Version 6.5 (-h for help)
Authors: Tom Hudson        (rewrite, additions, improvements)
         Stevante Software (original design)
         Kota543 Software  (fixes and updates)
         Jesse Smith       (additions, fixes and updates)
         Sven Eden         (ai rewrite, additions, fixes and updates)


Error occured. Unable to create sub directory.
Shutting down Allegro due to signal #4
$

Unfortunately I didn't find any solution to the error. Any idea what I can do about it or how to resolve the error?

@sat3ll
Copy link
Contributor

sat3ll commented Jan 20, 2019

https://sourceforge.net/p/atanks/atanks/ci/master/tree/src/files.cpp#l370

	// file not copied yet, create the required directory
	snprintf(buffer, PATH_MAX, "%s/.atanks", my_home_folder);
#ifdef ATANKS_IS_WINDOWS
	int32_t mkdir_status = mkdir(buffer);
#else
	int32_t mkdir_status = mkdir(buffer, 0700);
#endif // ATANKS_IS_WINDOWS

	if (mkdir_status == -1) {
		printf( "Error occured. Unable to create sub directory.\n");
		return false;
	}

It's failing to create ~/.atanks directory. Does this happen with a non-flatpak version? Could be a bug with atanks.

@KopfKrieg
Copy link
Author

Does this happen with a non-flatpak version?

There's no atanks PKGBUILD, and I currently don't have time to write one, therefore I can't test it right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants