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

Permission denied when runnning gamemoderun #115

Closed
gigaSproule opened this issue Mar 15, 2019 · 9 comments
Closed

Permission denied when runnning gamemoderun #115

gigaSproule opened this issue Mar 15, 2019 · 9 comments

Comments

@gigaSproule
Copy link

Describe the bug
I'm running Ubuntu 18.04 with the latest updates. I've just cloned the repo, checked out the 1.3 tag, installed all of the dependencies and then run ./bootstrap.sh. Everything seems to be OK, except that the gamemoderun script does not have executable permissions.

To Reproduce

  1. Clone git repo
  2. Checkout 1.3 tag
  3. Install all the required dependencies as described in the README
  4. run ./bootstrap.sh
  5. ls -lart /usr/bin/gamemoderun

Expected behavior
I would have expected the script to be executable.

System Info (please complete the following information):

  • OS and version: Ubuntu 18.04
  • GameMode Version: 1.3 (bc20bef)
@mdiluz
Copy link
Contributor

mdiluz commented Mar 16, 2019

This is strange to hear, see:

install_mode: 'rwxr-xr-x',

What version of meson do you have? As well as what is the full output of the command in step 5 of your reproduction?

@gigaSproule
Copy link
Author

Meson version is 0.45.1, which I installed from the Ubuntu repositories.

Output:

-rw-r--r-- 1 root root 300 Mar 15 21:31 /usr/bin/gamemoderun

@terrestrian
Copy link

I also had the same problem. You need to install latest versions of Meson and Ninja. You can easily install with pip3.

  1. Delete Meson and Ninja.

sudo apt remove meson ninja-build

  1. Use pip3 to install latest versions of Meson and Ninja.

sudo pip3 install meson
sudo pip3 install ninja

  1. Go to your gamemode directory.

./bootstrap.sh

After that, you should run gamemoderun without any issues.

@gigaSproule
Copy link
Author

To fix it, I just ran sudo chmod +x /usr/bin/gamemoderun and everything is fine. If there's an issue with using the bundled version from Ubuntu 18.04, then it's possibly worth adding that to the README.

aejsmith pushed a commit that referenced this issue Mar 25, 2019
The install_mode option was only added in Meson 0.47. In versions prior
to that, it will base the mode on the permissions of the source file,
so set this executable to be compatible with older versions.

See #115.
@aejsmith
Copy link
Contributor

Looks like the install_mode option was only added in Meson 0.47. I've committed 550bacf to master which should be compatible with older versions - @gigaSproule could you update to that and check that gamemoderun is executable after installing? You may need to do ninja uninstall from the build directory, then remove the build directory and run bootstrap.sh again, to make sure it picks up the changes.

@gigaSproule
Copy link
Author

Uninstalled, checked out master, deleted the build directory and then re-installed it perfectly fine.

@aejsmith
Copy link
Contributor

Thanks for testing, I've released 1.3.1 with the fix.

@ghost
Copy link

ghost commented Apr 8, 2019

So 1.3.0 is not recommended, right? You might want to update the README.md

@aejsmith
Copy link
Contributor

aejsmith commented Apr 9, 2019

Good point - I have updated the README.

afayaz-feral pushed a commit that referenced this issue May 26, 2020
The install_mode option was only added in Meson 0.47. In versions prior
to that, it will base the mode on the permissions of the source file,
so set this executable to be compatible with older versions.

See #115.
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

4 participants