You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scrot has some undocumented behavior and sometimes deliberately continues with some kludge when it fails to comply with the user's request.
We can see here that if the user requests that the cursor be included in the screenshot and scrot fails to capture the cursor, it will go ahead anyway without the the cursor:
case'm': /* t was already taken, so m as in mini */
if (filenameThumb)
streamStr(&ret, filenameThumb);
break;
We used to have an entirely undocumented feature: #216.
There are more instances in the code. We should start hard erroring if we fail to do what we were told to do by the user, and we should get rid of undocumented behaviors or adopt and document them if they're sensible like #216.
The text was updated successfully, but these errors were encountered:
if the user asks us to grab the pointer, we should either do that
otherwise fail rather than continuing on.
also remove a redundant comment, it should be clear that a function
named XFixesGetCursorImage is indeed returning back a cursor image.
ref: resurrecting-open-source-projects#272
if the user asks us to grab the pointer, we should either do that
otherwise fail rather than continuing on.
also remove a redundant comment, it should be clear that a function
named XFixesGetCursorImage is indeed returning back a cursor image.
ref: #272
scrot has some undocumented behavior and sometimes deliberately continues with some kludge when it fails to comply with the user's request.
We can see here that if the user requests that the cursor be included in the screenshot and scrot fails to capture the cursor, it will go ahead anyway without the the cursor:
scrot/src/scrot.c
Lines 432 to 435 in 75664ef
Here, scrot can't make sense of the user's wishes, but marches on anyway:
scrot/src/options.c
Lines 503 to 504 in 75664ef
In
imPrintf()
, if the user asks us to include the thumbnail's filename in the command to execute but there is no thumbnail, we just ignore it:scrot/src/scrot.c
Lines 624 to 627 in 75664ef
We used to have an entirely undocumented feature: #216.
There are more instances in the code. We should start hard erroring if we fail to do what we were told to do by the user, and we should get rid of undocumented behaviors or adopt and document them if they're sensible like #216.
The text was updated successfully, but these errors were encountered: