Bug 418983 - The KDE spectacle -n command line option disables -c command line option
Summary: The KDE spectacle -n command line option disables -c command line option
Status: RESOLVED DUPLICATE of bug 411263
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 19.08.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-18 10:15 UTC by johannes.kunde
Modified: 2021-08-23 12:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johannes.kunde 2020-03-18 10:15:41 UTC
When capturing a screenshot via command line with the following parameters "$ spectacle -rbc" everything works as expected (screen captured by region/area, background mode without GUI, notification pop-up). However, when i extend the command line options like "-rbcn" the clipboard options seems to be disabled.

STEPS TO REPRODUCE
1. capture screenshot from command line with "spectacle -rbc" and watch your clipboard
2. capture screenshot from command line with "spectacle -rbcn" and watch your clipboard

OBSERVED RESULT
Screenshot ist not saved to clipboard with the -n option

EXPECTED RESULT
Screenshot should be saved to clipboard with the -n option

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 31 (Kernel 5.5.8-200.fc31.x86_64)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2
Comment 1 Antonio Prcela 2020-03-29 11:11:19 UTC
Check comment #13:

https://bugs.kde.org/show_bug.cgi?id=411263#c13
Comment 2 johannes.kunde 2020-04-01 19:53:21 UTC
Hi Antonio,

thank you – i missed that one #411263. So, this bug is already known. Intentionally omitting the -n option and dealing with a pop-up window literally is a cosmetical issue. It is not logical, though. Probably, if there is no fix so far, you should consider to document this mismatch in the command line --help.

I also can confirm the exact same error message, which is mentioned here https://bugs.kde.org/show_bug.cgi?id=411263#c1 when running spectacle with -rbcn cli options:
kf5.kconfig.core: "\"cropRegion\" - conversion of \"0,0,0,0\" to QRect failed"

best regards
Johannes
Comment 3 Antonio Prcela 2021-02-09 21:53:42 UTC
(In reply to johannes.kunde from comment #2)

Hi Johannes, should be fixed in the meanwhile. i don't know which commit was tho

Probably this one, but it was set for target v20.* and above
https://phabricator.kde.org/R166:02f51eb2652fff0cc3471cf5cf3df73d214641c2
Comment 4 Jan Paul Batrina 2021-08-23 12:29:33 UTC
Fixed re-confirmed with Spectacle built from master (so the fix is in Spectacle 21.08 or even earlier)

*** This bug has been marked as a duplicate of bug 411263 ***