셔터로 제대로 스크린샷을 찍을 수 없습니다

셔터로 제대로 스크린샷을 찍을 수 없습니다

저는 Fedora 25를 실행하고 있으며 몇 가지 특정 화면 캡처를 해야 하므로 셔터가 이를 위한 훌륭한 도구라는 것을 읽었습니다. 안타깝게도 어떤 이유로든 사용할 수 없습니다. 스크린샷을 찍으려고 할 때마다 결과는 다음과 같습니다.

스크린샷

답변1

Fedora 25는 Wayland를 사용하고 있으며 많은 애플리케이션이 이에 대비하지 않습니다(특히 전체 화면과 같은 공유 리소스에 액세스할 때 보안이나 제한을 기대하지 않는 애플리케이션). 이것은 확실히 셔터의 버그이며 이미 버그로 채워져 있습니다.#1299293,#1363845,#1399331.

스크린샷을 찍으려면 다음 중 하나를 수행해야 합니다.오래된 X를 사용하세요, 또는 문제가 해결될 때까지 Wayland에서 다른 도구를 사용하세요.

답변2

나는 또한 스크린샷을 만들고 쉽게 이름을 바꾸기 위해 셔터를 많이 사용했는데 Fedora 27의 Wayland에 의해 깨지는 것을 보고 슬펐습니다.

gnome-screenshot은 Fedora-wayland에서 화면 캡처를 만드는 데 매우 유용한 유틸리티입니다. 다음과 같이 Wayland에서 Shutter에 대한 해결 방법을 만드는 데 매우 쉽게 사용할 수 있습니다.

1) 추가된 대로 shutdown.sh 및 Grabname.sh 스크립트를 생성합니다.

2) 실행 가능하게 만들고(chmod +x ) 명령줄에서 호출할 수 있도록 기존 명령 경로에 저장합니다. /usr/bin 에 있습니다. 저는 사용자 정의 스크립트를 /usr/local/bin에 저장하는 경향이 있지만 visudo를 사용하여 기본 경로에 추가해야 합니다.

3) 이제 shutdown.sh를 실행하면 커서가 나타납니다. 이를 사용하여 직사각형을 그리면 터미널이 새 파일 이름(grabname.sh)을 묻는 팝업 메시지를 표시합니다. 파일 이름에 공백을 사용할 수 있습니다. 그런 다음 파일 앞에 yyyymmdd(y)를 붙일 것인지 묻습니다. 접두사를 건너뛰려면 Return 키나 다른 키를 누르세요.

4) 이름이 변경된 파일은 /my/temp/location에 저장됩니다.

5) 이것을 shutdown.sh로 저장하십시오.

#!/bin/sh

# START shut.sh

# This script calls gnome-screen shot in Wayland to take a rectangular     screenshot
# resulting png is saved to /my/temp/location
# script then calls a second script (grabname.sh) which asks you for a filename to give the grab with the option to prefix current date if you want
# make sure both scripts are in a relevant executable path for your kernel eg. /usr/bin etc.
# You can allocate shut.sh to a hot key in settings and make screengrabs via a hotkey.

gnome-screenshot -a -f /my/temp/location/grabcache.png

gnome-terminal -e "bash grabname.sh"

# END shut.sh

그랩네임.sh

#!/bin/sh

# START grabname.sh

# Previous script shut.sh calls gnome-screen shot in Wayland to take a rectangular screenshot
# resulting png is saved to /my/temp/location
# This script (grabname.sh) asks you for a filename to give the grab with the option to prefix current date if you want
#  * spaces are allowed in filenames *
# make sure both scripts are in a relevant executable path for your kernel eg. /usr/bin etc.

# set -x

IFS=$'\n'

read -p "Name for grab? " grab

while true; do

    read -p "Append date yyyymmdd (y or anything else for no) ?" yn

    case $yn in
        [Yy]* ) ap=$(date +%Y%m%d_%H%M_)
        break;;

    * ) echo -e "\n\e[0;34mNot prefixing date...\e[0m\n"; ap="";break;;
    esac
done

echo $ap$grab

cp /my/temp/location/grabcache.png /my/temp/location/"$ap$grab".png

nautilus /my/temp/location

# END grabname.sh 

관련 정보