https://bugs.kde.org/show_bug.cgi?id=465524
Bug ID: 465524 Summary: Window title filename template (%T) doesn't work on wayland Classification: Applications Product: Spectacle Version: unspecified Platform: Compiled Sources OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: General Assignee: m...@baloneygeek.com Reporter: noaha...@gmail.com CC: k...@david-redondo.de Target Milestone: --- SUMMARY Spectacle's `ExportManager` class needs to get a window title from its `Platform` abstract class via a connection to the `Platform::windowTitleChanged(const QString &)` signal in order to generate a screenshot filename with a window title in it. However, Platform's subclasses for Wayland don't emit `windowTitleChanged()` since they can't get a window title for the picked window. Thus, you can't generate a filename with a window title in it on Wayland. STEPS TO REPRODUCE 1. Open a wayland kwin/plasma session 2. Open Spectacle 3. Open settings dialog by clicking the "Configure..." button 4. Go to the Save page 5. Set text field with "Filename" label to "%T_%Y%M%D_%H%m%S", Click OK 6. Do a Window Under Cursor screenshot on Firefox's new tab page 7. Click Save OBSERVED RESULT Filename is "Spectacle_20230209_175949.png", where the date and time can vary as they should. EXPECTED RESULT Filename should be the title of the Firefox window, plus the date and time, like "Mozilla Firefox_20230209_175949.png" SOFTWARE/OS VERSIONS Spectacle: git master a3c04c69a390fa53a29c6fde1e0c9b2fecfe150b -- You are receiving this mail because: You are watching all bug changes.