S
S
Sergey Karbivnichy2020-12-18 19:51:14
linux
Sergey Karbivnichy, 2020-12-18 19:51:14

How to use notify-send to show a link in a notification?

I read it on the net (including on Habré), the following command should show the link in the notification window:

notify-send «Шапка» "<b>жирный <i>италик <a href=«a.html»>ссылка</a>"

5fdcdca887733809064354.png
but I have just text, without links and formatting:
5fdcdcc819727105020295.png
How can I display a link?
I use Linux Mint Cinnamon.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Viktor T2, 2020-12-19
@Viktor_T2

notify-send --icon=mail-unread  "Message Header" "<a href='https://developer.mozilla.org'><span color='green' font='Times, 12'><b>Link Name</b></span></a> \n <b><i>Message 1</i></b> <span font='11'>\nMessage 2</span> "

Put closing tags:
if there is, there <b>should be a closing <\b>
nuitd
notify-send «Шапка» "<b>жирный</b> <i>италик</i> <a href='https://developer.mozilla.org/ru/'>ссылка</a>"

L
Lynn "Coffee Man", 2020-12-18
@Lynn

In your example, some autotypograph messed up the quotes. It should be something like this:

notify-send "Шапка" "<b>жирный <i>италик <a href='a.html'>ссылка</a>"

E
ettaluni, 2020-12-18
@ettaluni

Print by hand and you'll be fine.
Format: notify-send "Header" "html". And without a title. When copying, the characters are not the same and are invisible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question