shutter-project / shutter

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

Profiles aren't displayed #622

Closed ultrazebra closed 3 months ago

ultrazebra commented 9 months ago

Brief summary of issue

Profiles in preferences are saved, but are not visible neither in preferences profile list nor in main window corner list nor quick profile select in tray.

Steps to reproduce the issue

  1. Save a profile
  2. Restart the app

Error output

Profile missing: Selection_21:08:48-25-09-23 While it actually existing: Selection_21:09:33-25-09-23 Selection_21:09:39-25-09-23

Extra information, such as Shutter version, display server in use (Xorg or Wayland), operating system and ideas for how to solve:

Xorg LMDE 5 Shutter v0.99.2

Photon89 commented 9 months ago

The profile management is known to be broken in 0.99.2, even partially broken in the currently latest version 0.99.4.

You might want to test the latest git (just download as .zip, unpack and run from the unpacked folder without installation). Just install the new dependency libmoo-perl beforehand.

ultrazebra commented 9 months ago

The profile management is known to be broken in 0.99.2, even partially broken in the currently latest version 0.99.4.

You might want to test the latest git (just download as .zip, unpack and run from the unpacked folder without installation). Just install the new dependency libmoo-perl beforehand.

Profiles list and settings (difference between copying and saving at least) seem to be working well in 0.99.4. Only issue I've noticed is that if you set it to copy to clipboard (not save file), the pop up notification would say "Screenshot saved".

Edit: nothing broken appears visually, but terminal pops this upon profile change:

fct_update_tray_menu was called by Wnck::Screen=HASH(0x55bff9f83a60)
GLib-CRITICAL **: Source ID 1533 was not found when attempting to remove it at ./shutter line 6957.
 at ./shutter line 6955.
        Shutter::App::fct_show_status_message(1, "Settings loaded successfully") called at ./shutter line 4923
        Shutter::App::fct_load_settings("profile_load", "save") called at ./shutter line 3872
        Shutter::App::evt_apply_profile(Gtk3::ComboBoxText=HASH(0x55bffa8dc770), Gtk3::ComboBoxText=HASH(0x55bffb48fcf8), ARRAY(0x55bff7f89398)) called at ./shutter line 7184
        Shutter::App::__ANON__(Gtk3::ComboBoxText=HASH(0x55bffa8dc770)) called at /usr/lib/x86_64-linux-gnu/perl5/5.32/Glib/Object/Introspection.pm line 67
        eval {...} called at /usr/lib/x86_64-linux-gnu/perl5/5.32/Glib/Object/Introspection.pm line 67
        Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x55bff9f80f38)) called at ./shutter line 10944
ultrazebra commented 9 months ago

Attempting to split hotkeys into save/copy using different profiles doesn't pick profiles though, and only works if app is launched with profile arguments (can execute different arguments such as -f / -s, but can't use -p) i.e. PrntSc: shutter -s -p=profSave Ctrl + PrntSc: shutter -s -p=profCopy

Photon89 commented 9 months ago

Edit: nothing broken appears visually, but terminal pops this upon profile change:

That's expected and not an error, Shutter became quite verbose after some Perl update.

Attempting to split hotkeys into save/copy using different profiles doesn't pick profiles though, and only works if app is launched with profile arguments (can execute different arguments such as -f / -s, but can't use -p)

You can switch between profiles in the settings or with the drop down menu in the status bar. Or, of course, select one at launch with the -p option. What exactly doesn't work as expected?

Photon89 commented 3 months ago

Closing due to inactivity. Please open a new issue if the problem persists!