unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56834: 28.1; notifications-notify only show max of 3 buttons on pop up window on ubuntu20.04
@ 2022-07-29 18:47 王宗涛
  2022-07-30 11:38 ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: 王宗涛 @ 2022-07-29 18:47 UTC (permalink / raw)
  To: 56834

[-- Attachment #1: Type: text/plain, Size: 4695 bytes --]

Hi,
Start with 'emacs -Q', notifications-notify and only show max of three
ations buttons on pop up window. For example eval below code will only
show three button "aa" "bb" "cc" and other two buttons "dd" and "ee" are
missing. It is possible this is compatible issue between emacs and
ubuntu, but I think it will be good emacs can make it more general to
match ubuntu. If it is indeed ubuntu issue, please inform me, and I will
issue it on ubuntu side.

(progn (require 'notifications)
(notifications-notify
:title "only show aa bb cc"
:body "d e are missing"
:timeout 10
:urgency :normal
:actions '("a" "aa" "b" "bb" "c" "cc" "d" "dd" "e" "ee")
:on-action (lambda (id key) (message "id: %s key: %s" id key))))


In GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
of 2022-06-24 built on lcy02-amd64-106
Repository revision: 82b52fe2e2246a5ce049f1a00a758b85432e7f5e
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Ubuntu 20.04.4 LTS

Configured using:
'configure --prefix=/snap/emacs/current/usr --with-x-toolkit=gtk3
--without-xaw3d --with-modules --with-cairo --with-native-compilation
'CFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
-isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu
-O2' 'CPPFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
-isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu'
'LDFLAGS=-L/build/emacs/parts/emacs/install/lib
-L/build/emacs/parts/emacs/install/usr/lib
-L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu
-L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
value of $LC_MONETARY: zh_CN.UTF-8
value of $LC_NUMERIC: zh_CN.UTF-8
value of $LC_TIME: zh_CN.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs
password-cache json map text-property-search mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date
notifications dbus xml help-fns radix-tree cl-print debug backtrace
find-func site-start comp comp-cstr warnings subr-x rx cl-seq cl-macs
cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp
byte-compile cconv iso-transl tooltip eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 98676 8654)
(symbols 48 8435 0)
(strings 32 24435 2597)
(string-bytes 1 842186)
(vectors 16 18909)
(vector-slots 8 360586 13429)
(floats 8 34 50)
(intervals 56 550 0)
(buffers 992 14))













--

*****************************************
Best wishes
zongtao
Email:wztdream@163.com
*****************************************

[-- Attachment #2: Type: text/html, Size: 5937 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#56834: 28.1; notifications-notify only show max of 3 buttons on pop up window on ubuntu20.04
  2022-07-29 18:47 bug#56834: 28.1; notifications-notify only show max of 3 buttons on pop up window on ubuntu20.04 王宗涛
@ 2022-07-30 11:38 ` Michael Albinus
       [not found]   ` <67ad3fed.3dcf.1824fc56d92.Coremail.wztdream@163.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2022-07-30 11:38 UTC (permalink / raw)
  To: 王宗涛; +Cc: 56834

王宗涛 <wztdream@163.com> writes:

> Hi,

Hi,

> Start with 'emacs -Q', notifications-notify and only show max of three
> ations buttons on pop up window. For example eval below code will only
> show three button "aa" "bb" "cc" and other two buttons "dd" and "ee"
> are  missing.

I've checked this on D-Bus level, and notifications-notify is sending
everything as expected.

> It is possible this is compatible issue between emacs and ubuntu, but
> I think it will be good emacs can make it more general to match
> ubuntu. If it is indeed ubuntu issue, please inform me, and I will
> issue it on ubuntu side.

I don't know what you're running on "ubuntu". I'm running Fedora 36,  and
this behaves exactly when invoking the notification from the shell. Try

--8<---------------cut here---------------start------------->8---
# notify-send -A a=aa -A b=bb -A c=cc -A d=dd -A e=ee "only show aa bb cc" "d e are missing" 
--8<---------------cut here---------------end--------------->8---

The server itentifies itself by the following Lisp snippet:

--8<---------------cut here---------------start------------->8---
(notifications-get-server-information)
("gnome-shell" "GNOME" "42.3.1" "1.2")
--8<---------------cut here---------------end--------------->8---

I would say that the limitation is in the notification server. Not an
Emacs problem.

> Best wishes
> zongtao

Best regards, Michael.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#56834: 28.1; notifications-notify only show max of 3 buttons on pop up window on ubuntu20.04
       [not found]   ` <67ad3fed.3dcf.1824fc56d92.Coremail.wztdream@163.com>
@ 2022-07-30 17:27     ` Michael Albinus
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Albinus @ 2022-07-30 17:27 UTC (permalink / raw)
  To: 王宗涛; +Cc: 56834-done

王宗涛 <wztdream@163.com> writes:

Hi,

> thank you for you feed back,
> I issued a bug to ubuntu, hope peoblem can be sovled there.
> https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1983183

OK, so I'm closing this Emacs bug.

> Best wishes
> zongtao

Best regards, Michael.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-30 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 18:47 bug#56834: 28.1; notifications-notify only show max of 3 buttons on pop up window on ubuntu20.04 王宗涛
2022-07-30 11:38 ` Michael Albinus
     [not found]   ` <67ad3fed.3dcf.1824fc56d92.Coremail.wztdream@163.com>
2022-07-30 17:27     ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).