Skip to content

Apply patch by muktupavels that restores window list functionality - #798

Open
Photon89 wants to merge 3 commits into
masterfrom
fix-659
Open

Apply patch by muktupavels that restores window list functionality#798
Photon89 wants to merge 3 commits into
masterfrom
fix-659

Conversation

@Photon89

Copy link
Copy Markdown
Member

@Photon89Photon89 linked an issue Jan 25, 2026 that may be closed by this pull request
@DarthGandalf

Copy link
Copy Markdown
Member

I see this in log:

 at bin/shutter line 9369. Shutter::App::fct_init_depend() called at bin/shutter line 200 Subroutine lookup redefined at /home/somebody/shutter/share/shutter/resources/modules/Shutter/Draw/DrawingTool.pm line 28. require Shutter/Draw/DrawingTool.pm called at bin/shutter line 233 Use of uninitialized value $wm_name in pattern match (m//) at bin/shutter line 8492, <DATA> line 19. Shutter::App::fct_ret_workspace_menu("") called at bin/shutter line 608 Shutter::App::__ANON__(Wnck::Screen=HASH(0x5622a11ea260), Wnck::Workspace=HASH(0x5622a13a60e8)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 eval {...} called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 Glib::Object::Introspection::__ANON__() called at bin/shutter line 5680 Shutter::App::fct_update_gui() called at bin/shutter line 4098 Shutter::App::fct_try_init_tray() called at bin/shutter line 810 Shutter::App::STARTUP(Shutter::App=HASH(0x5622a11bbee8)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x5622a11bbee8)) called at bin/shutter line 11212 *** unhandled exception in callback: *** Can't call method "reparent" on an undefined value at bin/shutter line 8569, <DATA> line 19. *** Shutter::App::fct_ret_workspace_menu("") called at bin/shutter line 608 *** Shutter::App::__ANON__(Wnck::Screen=HASH(0x5622a11ea260), Wnck::Workspace=HASH(0x5622a13a60e8)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 *** eval {...} called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 *** Glib::Object::Introspection::__ANON__() called at bin/shutter line 5680 *** Shutter::App::fct_update_gui() called at bin/shutter line 4098 *** Shutter::App::fct_try_init_tray() called at bin/shutter line 810 *** Shutter::App::STARTUP(Shutter::App=HASH(0x5622a11bbee8)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 *** Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x5622a11bbee8)) called at bin/shutter line 11212 *** ignoring at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67, <DATA> line 19. at bin/shutter line 5680, <DATA> line 19. Shutter::App::fct_update_gui() called at bin/shutter line 4098 Shutter::App::fct_try_init_tray() called at bin/shutter line 810 Shutter::App::STARTUP(Shutter::App=HASH(0x5622a11bbee8)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67
Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x5622a11bbee8)) called at bin/shutter line 11212

Comment threadbin/shutter Outdated

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$wm_name is defined here. Are we sure that the proposed patch triggers the issue? It looks like a new issue to me, originally the whole $wnck_screen was undefined, now it just fails to get the window manager's name. Maybe we can catch it and set $wm_name to something like "not-compiz", if $wnck_screen->get_window_manager_name returns undefined?

@Photon89

Copy link
Copy Markdown
MemberAuthor

@DarthGandalf Could you please test if the latest commit fixes the issue for you?

@DarthGandalf

Copy link
Copy Markdown
Member
$ bin/shutter WARNING: gnome-web-photo is missing --> screenshots of websites will be disabled! at bin/shutter line 9352. Shutter::App::fct_init_depend() called at bin/shutter line 200 WARNING: Image::ExifTool is missing --> writing Exif information will be disabled! at bin/shutter line 9371. Shutter::App::fct_init_depend() called at bin/shutter line 200 Subroutine lookup redefined at /home/somebody/shutter/share/shutter/resources/modules/Shutter/Draw/DrawingTool.pm line 28. require Shutter/Draw/DrawingTool.pm called at bin/shutter line 233 Use of uninitialized value $wm_name in pattern match (m//) at bin/shutter line 8494, <DATA> line 19. Shutter::App::fct_ret_workspace_menu("") called at bin/shutter line 608 Shutter::App::__ANON__(Wnck::Screen=HASH(0x55d604eca840), Wnck::Workspace=HASH(0x55d60536c688)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 eval {...} called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 Glib::Object::Introspection::__ANON__() called at bin/shutter line 5680 Shutter::App::fct_update_gui() called at bin/shutter line 4098 Shutter::App::fct_try_init_tray() called at bin/shutter line 810 Shutter::App::STARTUP(Shutter::App=HASH(0x55d604eb56f0)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x55d604eb56f0)) called at bin/shutter line 11214 *** unhandled exception in callback: *** Can't call method "reparent" on an undefined value at bin/shutter line 8571, <DATA> line 19. *** Shutter::App::fct_ret_workspace_menu("") called at bin/shutter line 608 *** Shutter::App::__ANON__(Wnck::Screen=HASH(0x55d604eca840), Wnck::Workspace=HASH(0x55d60536c688)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 *** eval {...} called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 *** Glib::Object::Introspection::__ANON__() called at bin/shutter line 5680 *** Shutter::App::fct_update_gui() called at bin/shutter line 4098 *** Shutter::App::fct_try_init_tray() called at bin/shutter line 810 *** Shutter::App::STARTUP(Shutter::App=HASH(0x55d604eb56f0)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67 *** Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x55d604eb56f0)) called at bin/shutter line 11214 *** ignoring at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67, <DATA> line 19. at bin/shutter line 5680, <DATA> line 19. Shutter::App::fct_update_gui() called at bin/shutter line 4098 Shutter::App::fct_try_init_tray() called at bin/shutter line 810
Shutter::App::STARTUP(Shutter::App=HASH(0x55d604eb56f0)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67
Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x55d604eb56f0)) called at bin/shutter line 11214
*** unhandled exception in callback:
*** Can't call method "set_menu" on an undefined value at bin/shutter line 620, <DATA> line 19.
*** Shutter::App::__ANON__(Wnck::Screen=HASH(0x55d604eca840)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67
*** eval {...} called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67
*** Glib::Object::Introspection::__ANON__() called at bin/shutter line 5680
*** Shutter::App::fct_update_gui() called at bin/shutter line 4098
*** Shutter::App::fct_try_init_tray() called at bin/shutter line 810
*** Shutter::App::STARTUP(Shutter::App=HASH(0x55d604eb56f0)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67
*** Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x55d604eb56f0)) called at bin/shutter line 11214
*** ignoring at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67, <DATA> line 19.
at bin/shutter line 5680, <DATA> line 19.
Shutter::App::fct_update_gui() called at bin/shutter line 4098
Shutter::App::fct_try_init_tray() called at bin/shutter line 810
Shutter::App::STARTUP(Shutter::App=HASH(0x55d604eb56f0)) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67
Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x55d604eb56f0)) called at bin/shutter line 11214
Use of uninitialized value $wm_name in pattern match (m//) at bin/shutter line 8494, <DATA> line 19.
Shutter::App::fct_ret_workspace_menu("") called at bin/shutter line 616
Shutter::App::__ANON__(Wnck::Screen=HASH(0x55d604eca840), undef) called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67
eval {...} called at /usr/lib64/perl5/vendor_perl/5.42/x86_64-linux/Glib/Object/Introspection.pm line 67
Glib::Object::Introspection::__ANON__() called at bin/shutter line 5680
Shutter::App::fct_update_gui() called at bin/shutter line 4098
.......

Comment threadbin/shutter Outdated
@@ -8455,6 +8470,8 @@ sub STARTUP {
my $wm_name;
if ($wnck_screen->can('get_window_manager_name')) {
$wm_name = $wnck_screen->get_window_manager_name;

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, basically, $wnck_screen->can('get_window_manager_name') returns true, but $wnck_screen->get_window_manager_name is empty...

@Photon89

Copy link
Copy Markdown
MemberAuthor

@DarthGandalf Now that 0.99.7 is out, there is no hurry, but if you have some spare time, please test the latest commit, I think, it should fix the issue. 😃

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot open Shutter on Arch Linux

3 participants

@Photon89@DarthGandalf@vadi2