Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Permission denied for openning shader.glsl #4

Closed
ghost opened this issue Jul 11, 2017 · 3 comments
Closed

Permission denied for openning shader.glsl #4

ghost opened this issue Jul 11, 2017 · 3 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jul 11, 2017

I create a package for installing this extension in Arch Linux which install it under /usr/share/gnome-shell/extensions/blyr@yozoon.dev.gmail.com/ path. when I try to open extension preference I got following error:

Gio.IOErrorEnum: Error opening file “/usr/share/gnome-shell/extensions/blyr@yozoon.dev.gmail.com/shader.glsl”: Permission denied

Stack trace:
  ShaderEffect<._readFile@/usr/share/gnome-shell/extensions/blyr@yozoon.dev.gmail.com/effect.js:218:22
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
  ShaderEffect<._init@/usr/share/gnome-shell/extensions/blyr@yozoon.dev.gmail.com/effect.js:61:23
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
  _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110:5
  Class.prototype._construct/newClassConstructor@resource:///org/gnome/gjs/modules/lang.js:213:20
  buildPrefsWidget@/usr/share/gnome-shell/extensions/blyr@yozoon.dev.gmail.com/prefs.js:63:20
  Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:91:22
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
  Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:246:17
  wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
  main@resource:///org/gnome/shell/extensionPrefs/main.js:402:5
  @<main>:1:49

but by giving write permission to shader.glsl file, I can use extension successfully.
I think this is a kind of bug that must be fix.
by the way user of Arch Linux can use gnome-shell-extension-blyr-git package from AUR to install this extension. please add this to README.md file.
thanks.

@yozoon
Copy link
Owner

yozoon commented Jul 11, 2017

I updated the README with a link to the AUR package. Concerning the main issue: It looks like I'll have to rework the _readFile function. I'll let you know when I could use some help testing changes!

@yozoon yozoon added the bug label Jul 12, 2017
@yozoon
Copy link
Owner

yozoon commented Jul 16, 2017

I changed the _readFile function, so that it doesn't require write access. The functionality was tested by changing the permissions of the shader.glsl file to read-only - and in my test setup it didn't throw an error. Could you test it in your usecase to ensure proper operation?

Sent from my OnePlus A0001 using FastHub

@yozoon yozoon self-assigned this Jul 16, 2017
@ghost
Copy link
Author

ghost commented Jul 16, 2017

I test it and it worked correctly without any problem.
thanks

@yozoon yozoon closed this as completed Jul 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant