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

New eog version does not install additional files #5

Closed
jibsaramnim opened this issue Nov 17, 2021 · 5 comments
Closed

New eog version does not install additional files #5

jibsaramnim opened this issue Nov 17, 2021 · 5 comments

Comments

@jibsaramnim
Copy link
Contributor

It seems like after automatically having the extension updated to the eog version, the installation step is not triggered (presumably because the extension was already considered installed previously), but this seems to break the functionality of the extension, as it is unable to located required files (e.g. /usr/local/bin/screenpad-$USER). Or at least I think that's what happened?

Attached are the journal logs I could find, this is after attempting to press the disable secondary screen button and adjusting the brightness (neither of which actually worked, of course):

JS ERROR: GLib.SpawnError: Failed to execute child process “/usr/local/bin/screenpad-davejansen” (No such file or directory)
runScreenpadTool/<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:104:29
runScreenpadTool@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:93:12
_getBrightness@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:287:33
enable/this._brightnessListenerId<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:223:37
set value@resource:///org/gnome/shell/ui/barLevel.js:59:14
_changeSlider@resource:///org/gnome/shell/ui/status/brightness.js:63:9
_sync@resource:///org/gnome/shell/ui/status/brightness.js:71:18

JS ERROR: GLib.SpawnError: Failed to execute child process “/usr/local/bin/screenpad-davejansen” (No such file or directory)
runScreenpadTool/<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:104:29
runScreenpadTool@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:93:12
_getBrightness@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:287:33
enable/this._brightnessListenerId<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:223:37
set value@resource:///org/gnome/shell/ui/barLevel.js:59:14
_changeSlider@resource:///org/gnome/shell/ui/status/brightness.js:63:9
_sync@resource:///org/gnome/shell/ui/status/brightness.js:71:18

JS ERROR: GLib.SpawnError: Failed to execute child process “/usr/local/bin/screenpad-davejansen” (No such file or directory)
runScreenpadTool/<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:104:29
runScreenpadTool@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:93:12
_getBrightness@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:287:33
enable/this._brightnessListenerId<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:223:37
set value@resource:///org/gnome/shell/ui/barLevel.js:59:14
_changeSlider@resource:///org/gnome/shell/ui/status/brightness.js:63:9
_sync@resource:///org/gnome/shell/ui/status/brightness.js:71:18

JS ERROR: GLib.SpawnError: Failed to execute child process “/usr/local/bin/screenpad-davejansen” (No such file or directory)
runScreenpadTool/<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:104:29
runScreenpadTool@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:93:12
_getBrightness@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:287:33
enable/this._brightnessListenerId<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:223:37
set value@resource:///org/gnome/shell/ui/barLevel.js:59:14
_changeSlider@resource:///org/gnome/shell/ui/status/brightness.js:63:9
_sync@resource:///org/gnome/shell/ui/status/brightness.js:71:18

JS ERROR: GLib.SpawnError: Failed to execute child process “/usr/local/bin/screenpad-davejansen” (No such file or directory)
runScreenpadTool/<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:104:29
runScreenpadTool@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:93:12
_getBrightness@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:287:33
enable/this._brightnessListenerId<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:223:37
set value@resource:///org/gnome/shell/ui/barLevel.js:59:14
_changeSlider@resource:///org/gnome/shell/ui/status/brightness.js:63:9
_sync@resource:///org/gnome/shell/ui/status/brightness.js:71:18

JS ERROR: GLib.SpawnError: Failed to execute child process “/usr/local/bin/screenpad-davejansen” (No such file or directory)
runScreenpadTool/<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:104:29
runScreenpadTool@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:93:12
_getBrightness@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:287:33
enable/this._brightnessListenerId<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:223:37
set value@resource:///org/gnome/shell/ui/barLevel.js:59:14
_changeSlider@resource:///org/gnome/shell/ui/status/brightness.js:63:9
_sync@resource:///org/gnome/shell/ui/status/brightness.js:71:18

JS ERROR: GLib.SpawnError: Failed to execute child process “/usr/local/bin/screenpad-davejansen” (No such file or directory)
runScreenpadTool/<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:104:29
runScreenpadTool@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/utils.js:93:12
_getBrightness@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:287:33
enable/this._brightnessListenerId<@/home/davejansen/.local/share/gnome-shell/extensions/[email protected]/extension.js:223:37
set value@resource:///org/gnome/shell/ui/barLevel.js:59:14
_changeSlider@resource:///org/gnome/shell/ui/status/brightness.js:63:9
_sync@resource:///org/gnome/shell/ui/status/brightness.js:71:18
@jibsaramnim
Copy link
Contributor Author

jibsaramnim commented Nov 17, 2021

Quick follow-up; it does not seem to be specific to when you're upgrading from a self-installed version. After having removed the extension completely, logged out and back in, I re-installed the extension but it still does not seem to trigger the installation of the /usr/local/bin/screenpad-$USER file. Perhaps the entire install() method is not triggered, somehow?

Edit: I can confirm that when I manually install the accompanying tool, the extension starts working right away. I ran sudo ./installer.sh --prefix /usr --suffix $USER --extension-path ../ install from the scripts folder inside where the extension is installed (~/.local/share/gnome-shell/extensions/[email protected]/scripts/)

@jibsaramnim jibsaramnim changed the title Auto-update from self-installed to eog version does not install additional files New eog version does not install additional files Nov 17, 2021
@lunaneff
Copy link
Owner

That's strange, it should've shown a notification to install when it's enabled the first time after a gnome-shell restart. I'll see if I can figure it out

@lunaneff
Copy link
Owner

Easy fix, I moved the firstRun variable to be a class member but forgot to set it to true in the constructor

@lunaneff
Copy link
Owner

lunaneff commented Nov 17, 2021

The update is out on EGO now

@jibsaramnim
Copy link
Contributor Author

Awesome, you're lightning fast! I just had a change to boot up my laptop and after logging out and back in I got the additional step notification, entered my password, and then success notification! I didn't try this after first uninstalling the extension, but everything is still working after this update at least. Thank you again! :)

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