Pop!에서 알림 전송을 위한 대체 명령은 무엇입니까? 운영 체제

Pop!에서 알림 전송을 위한 대체 명령은 무엇입니까? 운영 체제

나는 notify-send에서 사용한다만자로 리눅스다음과 같이 알림을 보냅니다.

notify-send [OPTIONS] [Message Summary] [Message Body]

하지만 나는 팝으로 옮겼습니다! 운영체제와 내가 찾은 것command not found: notify-send

통지 보내기가 중단되었다고 들었으므로 Pop에서 알림을 보내는 대체 명령을 찾으려고 노력 중입니다! 운영 체제

Pop!에서도 알림 전송을 설치할 수 있나요? 운영 체제?

답변1

notify-send실제로 ,대중 음악! 운영 체제하지만 기본적으로 설치되어 있지는 않습니다. 대체 명령이 필요하지 않습니다. 우리는 그것을 설치하기만 하면 됩니다 libnotify-bin.

다음 명령을 사용하여 알림 보내기를 성공적으로 설치하고 사용할 수 있었습니다.

sudo apt install libnotify-bin
notify-send "Yes! It works!"

답변2

앞에서 언급 libnotify-bin했듯이 notify-send.

gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "YourAppName" "0" "Icon Path" "Notification Title" "Notification Message" "[]" "{}" 1500
  • 표시되는 "0"은 "대체 ID"이며, 이로 인해 이 알림이 다른 알림을 해당 ID로 대체하게 됩니다.
  • "[]"는 작업 목록입니다.
  • "{}"는 프롬프트 이미지입니다.
  • 1500은 만료 시간 제한(밀리초)입니다.

예:

gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "YourAppName" "0" "/usr/share/icons/Pop/32x32/devices/battery.svg" "Battery low!" "Your <u>Zune</u>'s battery is less than <b>20%</b>" "[]" "{}" 1500

당신은 보통 다음에만 관심이 있습니다., 통지제목, 통지,게다가만료, 하지만 더 자세히 알고 싶다면 다음 문서를 확인하세요.https://specations.freedesktop.org/notification-spec/notification-spec-latest.html

관련 정보