shutter-project / shutter

Screenshot tool for Linux
https://shutter-project.org/
GNU General Public License v3.0
501 stars 35 forks source link

Fix #162: Removes panic in Autostart package #657

Closed yorik closed 3 months ago

yorik commented 4 months ago

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.
DarthGandalf commented 4 months ago

Does it show a message or only writes to console?

yorik commented 4 months ago

It only writes to console.

yorik commented 3 months ago

Would it be possible to merge this? It fixes a problem for people who don't want to have it in autostart (or autostart isn't writable for different reason) and has no changes for others.