Standard Perl layout, and bin/shutter now adds the module path at
compile time (BEGIN + use lib) instead of at runtime, so modules can
be loaded with plain `use` and perl -c can see them.
- bin/shutter finds lib/ (source checkout) or share/shutter/lib
(installed) and exports SHUTTER_LIB for plugins, which run as
separate processes.
- Bundled plugins prefer SHUTTER_LIB and fall back to the old path.
- Compat for third-party plugins that hard-code
$SHUTTER_ROOT/share/shutter/resources/modules: that path is now a
symlink to lib/ in the source tree and to ../lib when installed.
- Drop redundant runtime `import lib` in Screenshot::{Error,Main,Web};
the path is already on @INC.
- make lint: only files *added* since the fork point. Legacy modules
now show up as renames and stay out of the ratchet.
Pure renames for all module files (git log --follow works).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add quality gates: make lint/test/boot/check and headless smoke test
- t/bin/with-x11: runs a command in a private X11 session (own Xvfb,
or Xephyr with VISIBLE=1, plus its own D-Bus session) with the host
Wayland environment stripped. Without this, Gtk opens windows on the
host desktop and Shutter routes captures via xdg-desktop-portal.
- make test: full suite in that session. SHUTTER_SMOKE_REQUIRED makes a
missing window manager fail loudly instead of skipping.
- t/smoke/01_full_capture.t: launches the real bin/shutter in an
isolated HOME under openbox, takes a full-screen capture with -f -e -o
and checks a PNG of the screen's size is written. Exercises STARTUP,
settings, session setup, capture and save end to end.
- make boot: 15s startup, fails on Perl runtime errors (undefined subs,
missing modules) that perl -c cannot see.
- make lint: perltidy (.perltidyrc) + perlcritic severity 4, applied
only to files added since the fork point. Legacy code (231 critic
violations, 26/35 files untidy) is not blocked; new code is.
Co-Authored…
Import Shutter source from upstream shutter-project/shutter@cb78390f