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

Shutter assumes ~/.config/autostart/shutter.desktop is writable, fails to exit #162

Closed
Photon89 opened this issue Jun 11, 2020 · 1 comment · Fixed by #657
Closed

Shutter assumes ~/.config/autostart/shutter.desktop is writable, fails to exit #162

Photon89 opened this issue Jun 11, 2020 · 1 comment · Fixed by #657

Comments

@Photon89
Copy link
Member

I've made a symlink ~/.config/autostart/shutter.desktop -> /usr/share/applications/shutter.desktop

Trying to close shutter produces:
*** unhandled exception in callback:
*** Permission denied at /usr/share/shutter/resources/modules/Shutter/App/Autostart.pm line 59.
*** ignoring at /usr/bin/shutter line 2884.

Shutter is unresponsive thereafter, need to resort to SIGKILL.

Replacing the symlink with a copy fixes the issue.

Shutter should fail gracefully in such a case and exit normally.

Launchpad Details: #LP1418162 Mindaugas Jakutis - 2015-02-04 18:26:13 +0000

@yorik
Copy link
Contributor

yorik commented Feb 13, 2024

I have similar issue. Are there anyway to prevent shutter from trying to creating ~/.config/autostart/shutter.desktop ?

yorik added a commit to yorik/shutter that referenced this issue Feb 27, 2024
Panic in Auotstart::create_autostart_file hang up the application. Log
example:

```
*** unhandled exception in callback:
***   Not a directory at /usr/share/perl5/Shutter/App/Autostart.pm line 59.
***   	Shutter::App::Autostart::create_autostart_file(Shutter::App::Autostart=HASH(0x555ef7853e08), "/home/user/.config/autostart", "", "", "") called at /usr/bin/shutter line 3189
***   	Shutter::App::__ANON__() called at /usr/lib/x86_64-linux-gnu/perl5/5.38/Glib/Object/Introspection.pm line 67
***   	eval {...} called at /usr/lib/x86_64-linux-gnu/perl5/5.38/Glib/Object/Introspection.pm line 67
***   	Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x555ef76dcf20)) called at /usr/bin/shutter line 10943
***  ignoring at /usr/lib/x86_64-linux-gnu/perl5/5.38/Glib/Object/Introspection.pm line 67.
```
@Photon89 Photon89 linked a pull request Feb 27, 2024 that will close this issue
DarthGandalf added a commit that referenced this issue Mar 27, 2024
Fix #162: Removes panic in Autostart package
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

Successfully merging a pull request may close this issue.

2 participants