unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#64310: 29.0.92; pure-GTK warning under Wayland
@ 2023-06-27  4:45 Pankaj Jangid
  2023-06-28  0:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 20+ messages in thread
From: Pankaj Jangid @ 2023-06-27  4:45 UTC (permalink / raw)
  To: 64310


Sorry for reporting this so late. I am using pure-GTK build since about
a year ago and this problem was first observed a few months ago, but I
am reporting it now because it occurred on my system again today.

I am on a Wayland system (Debian 12 Bookworm). My system is configured
to use Gnus as default mailto sender. It opens the message window but
also opens a warning that says, "You are trying to run Emacs configured
with the "pure-GTK" interface under X Window System". This warning
doesn't appear when I start Emacs normally. Only occurs when "mailto:"
is triggered from other application like browser. I am 100% sure that I
am using Wayland. Because the value of $XDG_SESSION_TYPE is
"wayland". And "WaylandEnable=false" is commented in my system's
"/etc/gdm3/daemon.conf".


In GNU Emacs 29.0.92 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.37, cairo version 1.16.0) of 2023-06-27 built on anant
Repository revision: 162c9c058eba104b3f2b73ac29533372c08977d8
Repository branch: emacs-29
System Description: Debian GNU/Linux 12 (bookworm)

Configured using:
 'configure --prefix=/home/pankaj/.local --with-pgtk --with-tree-sitter'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB

Important settings:
  value of $LANG: en_IN.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Group

Minor modes in effect:
  hl-line-mode: t
  gnus-undo-mode: t
  override-global-mode: t
  direnv-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  shell-dirtrack-mode: t
  server-mode: t
  cursor-sensor-mode: t
  editorconfig-mode: t
  which-key-mode: t
  savehist-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  tab-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
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/pankaj/.emacs.d/elpa/transient-20230602.2121/transient hides /home/pankaj/.local/share/emacs/29.0.92/lisp/transient

Features:
(shadow emacsbug bbdb-message flow-fill mm-archive gnus-html url-queue
help-fns radix-tree url-cache mm-url qp mule-util sort smiley gnus-cite
mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable
textsec-check gnus-async gnus-bcklg gnus-ml disp-table hl-line utf-7
nndraft nnmh nnfolder nnml bbdb-gnus bbdb-mua bbdb-com epa-file
network-stream gnus-agent gnus-srvr gnus-score score-mode nnvirtual
gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig nntp
gnus-cache gnus-sum gnus-group gnus-undo .gnus checkdoc lisp-mnt corfu
display-fill-column-indicator display-line-numbers init my-init kunji
hdfc ob-plantuml ob-sql ob-css ob-js ob-java ob-C ob-python python
gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo
parse-time gnus-spec gnus-int gnus-range gnus-win gnus nnheader range
erc-join solar cal-dst use-package-delight erc-goodies erc iso8601
erc-backend erc-networks erc-common erc-compat erc-loaddefs rust-ts-mode
use-package-bind-key bind-key js c-ts-common treesit direnv
magit-bookmark magit-submodule magit-blame magit-stash magit-reflog
magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-files magit-refs magit-status
magit magit-repos magit-apply magit-wip magit-log which-func magit-diff
smerge-mode diff diff-mode easy-mmode git-commit log-edit pcvs-util
add-log magit-core magit-autorevert autorevert filenotify magit-margin
magit-transient magit-process with-editor shell server magit-mode
transient edmacro kmacro magit-git magit-base magit-section
cursor-sensor crm compat org-mime message sendmail yank-media rfc822 mml
mml-sec epa derived epg rfc6068 epg-config gnus-util mailabbrev
mail-utils gmm-utils mailheader ox-org ox-odt rng-loc rng-uri rng-parse
rng-match rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util
ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox
org-element org-persist org-id org-refile avl-tree debbugs soap-client
mm-decode mm-bodies mm-encode url-http url-auth mail-parse rfc2231
rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rng-xsd rng-dt
rng-util xsd-regexp plantuml-mode solidity-mode solidity-common php-mode
mode-local speedbar ezimage dframe cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align php-face php php-project cc-engine cc-vars
cc-defs gnuplot info-look docker-compose-mode nov recentf tree-widget
wid-edit org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-src ob-comint org-pcomplete pcomplete org-list org-footnote
org-faces org-entities time-date ob-emacs-lisp ob-core ob-eval org-cycle
org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func
cal-menu calendar cal-loaddefs org-version org-compat org-macs
format-spec imenu bookmark pp shr pixel-fill kinsoku url-file puny svg
xml esxml-query dom markdown-mode color groovy-mode dash s graphql-mode
let-alist editorconfig editorconfig-core editorconfig-core-handle
editorconfig-fnmatch haskell-mode haskell-cabal haskell-utils
haskell-font-lock haskell-indentation haskell-string
haskell-sort-imports haskell-lexeme rx haskell-align-imports
haskell-complete-module haskell-ghc-support noutline outline
flymake-proc flymake warnings icons dabbrev haskell-customize go-mode
find-file ffap thingatpt etags fileloop generator compile
text-property-search comint ansi-osc ansi-color denote xdg dired
dired-loaddefs xref project ring which-key exec-path-from-shell bbdb
bbdb-site timezone delight cl-extra help-mode use-package-ensure
use-package-core modus-operandi-theme modus-themes savehist finder-inf
0blayout-autoloads 750words-autoloads auctex-autoloads tex-site
bbdb-autoloads corfu-autoloads debbugs-autoloads delight-autoloads
denote-autoloads direnv-autoloads docker-compose-mode-autoloads
exec-path-from-shell-autoloads gnuplot-autoloads go-mode-autoloads
graphql-mode-autoloads groovy-mode-autoloads haskell-mode-autoloads
json-snatcher-autoloads lua-mode-autoloads magit-autoloads pcase
git-commit-autoloads magit-section-autoloads markdown-mode-autoloads
nov-autoloads esxml-autoloads kv-autoloads org-mime-autoloads
parseedn-autoloads parseclj-autoloads php-mode-autoloads
plantuml-mode-autoloads prettier-autoloads editorconfig-autoloads
nvm-autoloads f-autoloads dash-autoloads iter2-autoloads queue-autoloads
s-autoloads sesman-autoloads solidity-mode-autoloads spinner-autoloads
transient-autoloads which-key-autoloads with-editor-autoloads info
compat-autoloads yaml-mode-autoloads package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
early-init rmc iso-transl tooltip cconv eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win
pgtk-win term/common-win pgtk-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 nadvice seq simple cl-generic indonesian philippine
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 abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 1178872 45427)
 (symbols 48 51757 23)
 (strings 32 245923 15376)
 (string-bytes 1 7246433)
 (vectors 16 115007)
 (vector-slots 8 1467621 95401)
 (floats 8 917 173)
 (intervals 56 1014 118)
 (buffers 984 30))





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-06-27  4:45 bug#64310: 29.0.92; pure-GTK warning under Wayland Pankaj Jangid
@ 2023-06-28  0:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-07-01  8:41   ` Eli Zaretskii
  2023-07-01  9:25   ` Pankaj Jangid
  0 siblings, 2 replies; 20+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-06-28  0:26 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 64310

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Sorry for reporting this so late. I am using pure-GTK build since about
> a year ago and this problem was first observed a few months ago, but I
> am reporting it now because it occurred on my system again today.
>
> I am on a Wayland system (Debian 12 Bookworm). My system is configured
> to use Gnus as default mailto sender. It opens the message window but
> also opens a warning that says, "You are trying to run Emacs configured
> with the "pure-GTK" interface under X Window System". This warning
> doesn't appear when I start Emacs normally. Only occurs when "mailto:"
> is triggered from other application like browser. I am 100% sure that I
> am using Wayland. Because the value of $XDG_SESSION_TYPE is
> "wayland". And "WaylandEnable=false" is commented in my system's
> "/etc/gdm3/daemon.conf".

This dialog cannot be displayed if Emacs is using the GDK Wayland
backend.  Perhaps the WAYLAND_DISPLAY environment variable was not set
when Emacs was started to handle the mailto URI.

How did you configure Emacs to handle such URIs?





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-06-28  0:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-07-01  8:41   ` Eli Zaretskii
  2023-07-01  9:25   ` Pankaj Jangid
  1 sibling, 0 replies; 20+ messages in thread
From: Eli Zaretskii @ 2023-07-01  8:41 UTC (permalink / raw)
  To: pankaj, Po Lu; +Cc: 64310

Ping!  Pankaj, can you please answer Po Lu's questions, so that we
could continue investigating this issue?

> Cc: 64310@debbugs.gnu.org
> Date: Wed, 28 Jun 2023 08:26:15 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> Pankaj Jangid <pankaj@codeisgreat.org> writes:
> 
> > Sorry for reporting this so late. I am using pure-GTK build since about
> > a year ago and this problem was first observed a few months ago, but I
> > am reporting it now because it occurred on my system again today.
> >
> > I am on a Wayland system (Debian 12 Bookworm). My system is configured
> > to use Gnus as default mailto sender. It opens the message window but
> > also opens a warning that says, "You are trying to run Emacs configured
> > with the "pure-GTK" interface under X Window System". This warning
> > doesn't appear when I start Emacs normally. Only occurs when "mailto:"
> > is triggered from other application like browser. I am 100% sure that I
> > am using Wayland. Because the value of $XDG_SESSION_TYPE is
> > "wayland". And "WaylandEnable=false" is commented in my system's
> > "/etc/gdm3/daemon.conf".
> 
> This dialog cannot be displayed if Emacs is using the GDK Wayland
> backend.  Perhaps the WAYLAND_DISPLAY environment variable was not set
> when Emacs was started to handle the mailto URI.
> 
> How did you configure Emacs to handle such URIs?
> 
> 
> 
> 





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-06-28  0:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-07-01  8:41   ` Eli Zaretskii
@ 2023-07-01  9:25   ` Pankaj Jangid
  2023-07-01  9:43     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 20+ messages in thread
From: Pankaj Jangid @ 2023-07-01  9:25 UTC (permalink / raw)
  To: Po Lu; +Cc: 64310

Po Lu <luangruo@yahoo.com> writes:

> This dialog cannot be displayed if Emacs is using the GDK Wayland
> backend.  Perhaps the WAYLAND_DISPLAY environment variable was not set
> when Emacs was started to handle the mailto URI.

$WAYLAND_DISPLAY is reporting value "wayland-0" (without quotes).

> How did you configure Emacs to handle such URIs?

I configured it using Gnome Settings UI. There is section for "Default
Applications". This lists three options for Mail - (1) Emacs (Mail,
Client) (2) Emacs (Mail) and (3) Evolution. I selected the first option.

Following are the relevant sections from ~/.config/mimeapps.list,

--8<---------------cut here---------------start------------->8---
[Added Associations]
x-scheme-handler/mailto=thunderbird.desktop;userapp-Thunderbird-9Y4UF1.desktop;emacs-mail.desktop;emacsclient-mail.desktop;

[Default Applications]
x-scheme-handler/mailto=emacsclient-mail.desktop
--8<---------------cut here---------------end--------------->8---

And contents of ~/.local/share/emacs/29.0.92/etc/emacsclient-mail.desktop

--8<---------------cut here---------------start------------->8---
[Desktop Entry]
Categories=Network;Email;
Comment=GNU Emacs is an extensible, customizable text editor - and more
# We want to pass the following commands to the shell wrapper:
# u=$(echo "$1" | sed 's/[\"]/\\&/g'); exec emacsclient --alternate-editor= --display="$DISPLAY" --eval "(message-mailto \"$u\")"
# Special chars '"', '$', and '\' must be escaped as '\\"', '\\$', and '\\\\'.
Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
Icon=emacs
Name=Emacs (Mail, Client)
MimeType=x-scheme-handler/mailto;
NoDisplay=true
Terminal=false
Type=Application
Keywords=emacsclient;
Actions=new-window;new-instance;

[Desktop Action new-window]
Name=New Window
Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --create-frame --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u

[Desktop Action new-instance]
Name=New Instance
Exec=emacs -f message-mailto %u
--8<---------------cut here---------------end--------------->8---

And ~/.local/share/emacs/29.0.92/etc/emacs-mail.desktop contains,

--8<---------------cut here---------------start------------->8---
[Desktop Entry]
Categories=Network;Email;
Comment=GNU Emacs is an extensible, customizable text editor - and more
Exec=emacs -f message-mailto %u
Icon=emacs
Name=Emacs (Mail)
MimeType=x-scheme-handler/mailto;
NoDisplay=true
Terminal=false
Type=Application
--8<---------------cut here---------------end--------------->8---





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-01  9:25   ` Pankaj Jangid
@ 2023-07-01  9:43     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-07-01  9:53       ` Pankaj Jangid
  0 siblings, 1 reply; 20+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-07-01  9:43 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: 64310

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g'); exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u

I think this line here is the problem: it will make emacsclient try to
use the Xwayland display.  What happens if you delete the `--display'
argument from this command line?  Emacsclient should be smart enough to
figure out which display to use from the environment alone.





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-01  9:43     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-07-01  9:53       ` Pankaj Jangid
  2023-07-06  7:12         ` Eli Zaretskii
  0 siblings, 1 reply; 20+ messages in thread
From: Pankaj Jangid @ 2023-07-01  9:53 UTC (permalink / raw)
  To: Po Lu; +Cc: 64310

Po Lu <luangruo@yahoo.com> writes:

> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>
>> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g');
>> exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\"
>> --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
>
> I think this line here is the problem: it will make emacsclient try to
> use the Xwayland display.  What happens if you delete the `--display'
> argument from this command line?  Emacsclient should be smart enough to
> figure out which display to use from the environment alone.

Nope. I removed the "--display=..."  argument from
.local/share/emacs/29.0.92/etc/emacsclient-mail.desktop. It did not make
any difference.






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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-01  9:53       ` Pankaj Jangid
@ 2023-07-06  7:12         ` Eli Zaretskii
  2023-07-06 11:45           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2023-07-06  7:12 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: luangruo, 64310

Ping!  Can we please continue investigating this, as it looks as if it
affects the upcoming Emacs 29?

> Cc: 64310@debbugs.gnu.org
> From: Pankaj Jangid <pankaj@codeisgreat.org>
> Date: Sat, 01 Jul 2023 15:23:56 +0530
> 
> Po Lu <luangruo@yahoo.com> writes:
> 
> > Pankaj Jangid <pankaj@codeisgreat.org> writes:
> >
> >> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g');
> >> exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\"
> >> --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
> >
> > I think this line here is the problem: it will make emacsclient try to
> > use the Xwayland display.  What happens if you delete the `--display'
> > argument from this command line?  Emacsclient should be smart enough to
> > figure out which display to use from the environment alone.
> 
> Nope. I removed the "--display=..."  argument from
> .local/share/emacs/29.0.92/etc/emacsclient-mail.desktop. It did not make
> any difference.
> 
> 
> 
> 
> 





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-06  7:12         ` Eli Zaretskii
@ 2023-07-06 11:45           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-07-13  9:30             ` Pankaj Jangid
  0 siblings, 1 reply; 20+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-07-06 11:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 64310, Pankaj Jangid

Eli Zaretskii <eliz@gnu.org> writes:

> Ping!  Can we please continue investigating this, as it looks as if it
> affects the upcoming Emacs 29?
>
>> Cc: 64310@debbugs.gnu.org
>> From: Pankaj Jangid <pankaj@codeisgreat.org>
>> Date: Sat, 01 Jul 2023 15:23:56 +0530
>> 
>> Po Lu <luangruo@yahoo.com> writes:
>> 
>> > Pankaj Jangid <pankaj@codeisgreat.org> writes:
>> >
>> >> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g');
>> >> exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\"
>> >> --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
>> >
>> > I think this line here is the problem: it will make emacsclient try to
>> > use the Xwayland display.  What happens if you delete the `--display'
>> > argument from this command line?  Emacsclient should be smart enough to
>> > figure out which display to use from the environment alone.
>> 
>> Nope. I removed the "--display=..."  argument from
>> .local/share/emacs/29.0.92/etc/emacsclient-mail.desktop. It did not make
>> any difference.
>> 
>> 
>> 
>> 
>> 

Sorry, I must've missed that reply.  Pankaj, what if you replace
--display="$DISPLAY" with --display="$WAYLAND_DISPLAY"?

Thanks.





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-06 11:45           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-07-13  9:30             ` Pankaj Jangid
  2023-07-22 13:15               ` Eli Zaretskii
  0 siblings, 1 reply; 20+ messages in thread
From: Pankaj Jangid @ 2023-07-13  9:30 UTC (permalink / raw)
  To: Po Lu; +Cc: 64310, Eli Zaretskii

Po Lu <luangruo@yahoo.com> writes:

>>> > Pankaj Jangid <pankaj@codeisgreat.org> writes:
>>> >
>>> >> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g');
>>> >> exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\"
>>> >> --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
>>> >
>>> > I think this line here is the problem: it will make emacsclient try to
>>> > use the Xwayland display.  What happens if you delete the `--display'
>>> > argument from this command line?  Emacsclient should be smart enough to
>>> > figure out which display to use from the environment alone.
>>> 
>>> Nope. I removed the "--display=..."  argument from
>>> .local/share/emacs/29.0.92/etc/emacsclient-mail.desktop. It did not make
>>> any difference.
>>> 
>
> Sorry, I must've missed that reply.  Pankaj, what if you replace
> --display="$DISPLAY" with --display="$WAYLAND_DISPLAY"?
>

Nothing changes. When there is no default email handler configured
i.e. when Firefox is set to ask each time. It shows two options for
Emacs - (1) Emacs(Mail, Client) (2) Emacs (Mail). When I select the
first one, it shows error that I reported. If I select option (2), Emacs
launches without any warning (desired behaviour).






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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-13  9:30             ` Pankaj Jangid
@ 2023-07-22 13:15               ` Eli Zaretskii
  2023-07-22 13:38                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2023-07-22 13:15 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: luangruo, 64310

Ping!  Can we make some progress in this issue?

> From: Pankaj Jangid <pankaj@codeisgreat.org>
> Cc: Eli Zaretskii <eliz@gnu.org>,  64310@debbugs.gnu.org
> Date: Thu, 13 Jul 2023 15:00:16 +0530
> 
> Po Lu <luangruo@yahoo.com> writes:
> 
> >>> > Pankaj Jangid <pankaj@codeisgreat.org> writes:
> >>> >
> >>> >> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g');
> >>> >> exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\"
> >>> >> --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
> >>> >
> >>> > I think this line here is the problem: it will make emacsclient try to
> >>> > use the Xwayland display.  What happens if you delete the `--display'
> >>> > argument from this command line?  Emacsclient should be smart enough to
> >>> > figure out which display to use from the environment alone.
> >>> 
> >>> Nope. I removed the "--display=..."  argument from
> >>> .local/share/emacs/29.0.92/etc/emacsclient-mail.desktop. It did not make
> >>> any difference.
> >>> 
> >
> > Sorry, I must've missed that reply.  Pankaj, what if you replace
> > --display="$DISPLAY" with --display="$WAYLAND_DISPLAY"?
> >
> 
> Nothing changes. When there is no default email handler configured
> i.e. when Firefox is set to ask each time. It shows two options for
> Emacs - (1) Emacs(Mail, Client) (2) Emacs (Mail). When I select the
> first one, it shows error that I reported. If I select option (2), Emacs
> launches without any warning (desired behaviour).
> 
> 





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-22 13:15               ` Eli Zaretskii
@ 2023-07-22 13:38                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-07-26 13:54                   ` Eli Zaretskii
  2023-07-27  5:18                   ` Pankaj Jangid
  0 siblings, 2 replies; 20+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-07-22 13:38 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 64310, Pankaj Jangid

Eli Zaretskii <eliz@gnu.org> writes:

> Ping!  Can we make some progress in this issue?
>
>> From: Pankaj Jangid <pankaj@codeisgreat.org>
>> Cc: Eli Zaretskii <eliz@gnu.org>,  64310@debbugs.gnu.org
>> Date: Thu, 13 Jul 2023 15:00:16 +0530
>> 
>> Po Lu <luangruo@yahoo.com> writes:
>> 
>> >>> > Pankaj Jangid <pankaj@codeisgreat.org> writes:
>> >>> >
>> >>> >> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g');
>> >>> >> exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\"
>> >>> >> --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
>> >>> >
>> >>> > I think this line here is the problem: it will make emacsclient try to
>> >>> > use the Xwayland display.  What happens if you delete the `--display'
>> >>> > argument from this command line?  Emacsclient should be smart enough to
>> >>> > figure out which display to use from the environment alone.
>> >>> 
>> >>> Nope. I removed the "--display=..."  argument from
>> >>> .local/share/emacs/29.0.92/etc/emacsclient-mail.desktop. It did not make
>> >>> any difference.
>> >>> 
>> >
>> > Sorry, I must've missed that reply.  Pankaj, what if you replace
>> > --display="$DISPLAY" with --display="$WAYLAND_DISPLAY"?
>> >
>> 
>> Nothing changes. When there is no default email handler configured
>> i.e. when Firefox is set to ask each time. It shows two options for
>> Emacs - (1) Emacs(Mail, Client) (2) Emacs (Mail). When I select the
>> first one, it shows error that I reported. If I select option (2), Emacs
>> launches without any warning (desired behaviour).
>> 
>> 

I tried to reproduce this myself a few weeks ago, but I guess the line
eater ate my reply.

Unfortunately, the desktop file works as expected.  Are you sure the
emacsclient you've installed corresponds to a PGTK build of Emacs?  If
it's part of an Emacs installation built with another window system,
PGTK-specific code within won't be present, demonstrating symptoms
similar to what you are experiencing.





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-22 13:38                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-07-26 13:54                   ` Eli Zaretskii
  2023-07-27  5:18                   ` Pankaj Jangid
  1 sibling, 0 replies; 20+ messages in thread
From: Eli Zaretskii @ 2023-07-26 13:54 UTC (permalink / raw)
  To: pankaj, Po Lu; +Cc: 64310

Ping!  Pankaj, can you please answer Po Lu's questions?

> From: Po Lu <luangruo@yahoo.com>
> Cc: Pankaj Jangid <pankaj@codeisgreat.org>,  64310@debbugs.gnu.org
> Date: Sat, 22 Jul 2023 21:38:47 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Ping!  Can we make some progress in this issue?
> >
> >> From: Pankaj Jangid <pankaj@codeisgreat.org>
> >> Cc: Eli Zaretskii <eliz@gnu.org>,  64310@debbugs.gnu.org
> >> Date: Thu, 13 Jul 2023 15:00:16 +0530
> >> 
> >> Po Lu <luangruo@yahoo.com> writes:
> >> 
> >> >>> > Pankaj Jangid <pankaj@codeisgreat.org> writes:
> >> >>> >
> >> >>> >> Exec=sh -c "u=\\$(echo \\"\\$1\\" | sed 's/[\\\\\\"]/\\\\\\\\&/g');
> >> >>> >> exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\"
> >> >>> >> --eval \\"(message-mailto \\\\\\"\\$u\\\\\\")\\"" sh %u
> >> >>> >
> >> >>> > I think this line here is the problem: it will make emacsclient try to
> >> >>> > use the Xwayland display.  What happens if you delete the `--display'
> >> >>> > argument from this command line?  Emacsclient should be smart enough to
> >> >>> > figure out which display to use from the environment alone.
> >> >>> 
> >> >>> Nope. I removed the "--display=..."  argument from
> >> >>> .local/share/emacs/29.0.92/etc/emacsclient-mail.desktop. It did not make
> >> >>> any difference.
> >> >>> 
> >> >
> >> > Sorry, I must've missed that reply.  Pankaj, what if you replace
> >> > --display="$DISPLAY" with --display="$WAYLAND_DISPLAY"?
> >> >
> >> 
> >> Nothing changes. When there is no default email handler configured
> >> i.e. when Firefox is set to ask each time. It shows two options for
> >> Emacs - (1) Emacs(Mail, Client) (2) Emacs (Mail). When I select the
> >> first one, it shows error that I reported. If I select option (2), Emacs
> >> launches without any warning (desired behaviour).
> >> 
> >> 
> 
> I tried to reproduce this myself a few weeks ago, but I guess the line
> eater ate my reply.
> 
> Unfortunately, the desktop file works as expected.  Are you sure the
> emacsclient you've installed corresponds to a PGTK build of Emacs?  If
> it's part of an Emacs installation built with another window system,
> PGTK-specific code within won't be present, demonstrating symptoms
> similar to what you are experiencing.






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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-22 13:38                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-07-26 13:54                   ` Eli Zaretskii
@ 2023-07-27  5:18                   ` Pankaj Jangid
  2023-08-03  8:01                     ` Eli Zaretskii
  1 sibling, 1 reply; 20+ messages in thread
From: Pankaj Jangid @ 2023-07-27  5:18 UTC (permalink / raw)
  To: Po Lu; +Cc: 64310, Eli Zaretskii

Po Lu <luangruo@yahoo.com> writes:

>>> Nothing changes. When there is no default email handler configured
>>> i.e. when Firefox is set to ask each time. It shows two options for
>>> Emacs - (1) Emacs(Mail, Client) (2) Emacs (Mail). When I select the
>>> first one, it shows error that I reported. If I select option (2), Emacs
>>> launches without any warning (desired behaviour).
>
> I tried to reproduce this myself a few weeks ago, but I guess the line
> eater ate my reply.
>
> Unfortunately, the desktop file works as expected.  Are you sure the
> emacsclient you've installed corresponds to a PGTK build of Emacs?  If
> it's part of an Emacs installation built with another window system,
> PGTK-specific code within won't be present, demonstrating symptoms
> similar to what you are experiencing.

I have no other emacs installation. So I am pretty sure this is PGTK
build. Using following command to build,

--8<---------------cut here---------------start------------->8---
	    ./autogen.sh \
		&& ./configure --prefix=$HOME/.local \
			       --with-tree-sitter \
			       --with-pgtk \
			       CFLAGS='-O0 -g3' \
		&& make -j`nproc` \
		&& make install
--8<---------------cut here---------------end--------------->8---


The output of "ldd" against emacs and emacsclient from my path
are as follows,

--8<---------------cut here---------------start------------->8---
$ ldd /home/pankaj/.local/bin/emacs-29.1 
	linux-vdso.so.1 (0x00007ffe87159000)
	libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3.so.0 (0x00007f7485800000)
	libgdk-3.so.0 => /lib/x86_64-linux-gnu/libgdk-3.so.0 (0x00007f7486a54000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7486a35000)
	libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f7486197000)
	libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f7486093000)
	libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f74856dc000)
	libgdk_pixbuf-2.0.so.0 => /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007f7486065000)
	libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f74854fe000)
	libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f748549f000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f7485367000)
	libtiff.so.6 => /lib/x86_64-linux-gnu/libtiff.so.6 (0x00007f74852db000)
	libjpeg.so.62 => /lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007f7485248000)
	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f748602f000)
	libgif.so.7 => /lib/x86_64-linux-gnu/libgif.so.7 (0x00007f7486a26000)
	libwebpdemux.so.2 => /lib/x86_64-linux-gnu/libwebpdemux.so.2 (0x00007f7486029000)
	libwebp.so.7 => /lib/x86_64-linux-gnu/libwebp.so.7 (0x00007f74851d6000)
	libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f74850cd000)
	librsvg-2.so.2 => /lib/x86_64-linux-gnu/librsvg-2.so.2 (0x00007f7484600000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7484521000)
	libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f74850c2000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f74844cb000)
	libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f748431f000)
	libgpm.so.2 => /lib/x86_64-linux-gnu/libgpm.so.2 (0x00007f7486021000)
	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f74842ec000)
	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f7485094000)
	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f7484221000)
	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f74841d6000)
	libotf.so.1 => /lib/x86_64-linux-gnu/libotf.so.1 (0x00007f74841bd000)
	libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f7483e00000)
	liblcms2.so.2 => /lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f7484158000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f7484088000)
	libjansson.so.4 => /lib/x86_64-linux-gnu/libjansson.so.4 (0x00007f7484078000)
	libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f7483d7f000)
	libtree-sitter.so.0 => /usr/local/lib/libtree-sitter.so.0 (0x00007f7484047000)
	libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f7483c20000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7483a3f000)
	libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f748403f000)
	libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f748402e000)
	libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f7483a26000)
	libfribidi.so.0 => /lib/x86_64-linux-gnu/libfribidi.so.0 (0x00007f7483a0a000)
	libcairo-gobject.so.2 => /lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x00007f7484023000)
	libatk-1.0.so.0 => /lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f74839e1000)
	libepoxy.so.0 => /lib/x86_64-linux-gnu/libepoxy.so.0 (0x00007f74838b2000)
	libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007f748389e000)
	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f748375c000)
	libatk-bridge-2.0.so.0 => /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 (0x00007f7483720000)
	libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f7483718000)
	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f74836d2000)
	libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f74836c0000)
	libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007f74836b6000)
	libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007f74836b1000)
	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f748369c000)
	libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f748368f000)
	libXdamage.so.1 => /lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f748368a000)
	libXcomposite.so.1 => /lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f7483685000)
	libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f7483678000)
	libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f7483673000)
	libthai.so.0 => /lib/x86_64-linux-gnu/libthai.so.0 (0x00007f7483666000)
	libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f748363a000)
	libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f748358f000)
	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f748358a000)
	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f7483560000)
	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f7483550000)
	libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f7483543000)
	libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f74834e0000)
	libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f74834d4000)
	libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f748343a000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f748337e000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f748334d000)
	libLerc.so.4 => /lib/x86_64-linux-gnu/libLerc.so.4 (0x00007f74832b5000)
	libjbig.so.0 => /lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f74832a4000)
	libdeflate.so.0 => /lib/x86_64-linux-gnu/libdeflate.so.0 (0x00007f748327e000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f7486b86000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f748325e000)
	libicuuc.so.72 => /lib/x86_64-linux-gnu/libicuuc.so.72 (0x00007f748305e000)
	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f7483051000)
	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f7483026000)
	libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f7482ef2000)
	libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f7482ec1000)
	libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f7482d09000)
	libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f7482cf4000)
	libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007f7482ca6000)
	libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007f7482c5d000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f7482c51000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f7482b0a000)
	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f7482ae2000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7482add000)
	libatspi.so.0 => /lib/x86_64-linux-gnu/libatspi.so.0 (0x00007f7482aa2000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7482a9d000)
	libdatrie.so.1 => /lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f7482a91000)
	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f7482a8c000)
	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f7482800000)
	libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f7482a35000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7482400000)
	libicudata.so.72 => /lib/x86_64-linux-gnu/libicudata.so.72 (0x00007f7480600000)
	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f7482a10000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f74827d8000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f74827c2000)
	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f74827b5000)
$ ls -l /home/pankaj/.local/bin/emacsclient 
-rwxr-xr-x 1 pankaj pankaj 231496 Jul 27 10:36 /home/pankaj/.local/bin/emacsclient
$ ldd /home/pankaj/.local/bin/emacsclient 
	linux-vdso.so.1 (0x00007ffd5577b000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe4f2221000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fe4f2434000)
$ which emacs
/home/pankaj/.local/bin/emacs
$ which emacsclient
/home/pankaj/.local/bin/emacsclient
$ ls -l `which emacs`
lrwxrwxrwx 1 pankaj pankaj 10 Jul 27 10:36 /home/pankaj/.local/bin/emacs -> emacs-29.1
--8<---------------cut here---------------end--------------->8---






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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-07-27  5:18                   ` Pankaj Jangid
@ 2023-08-03  8:01                     ` Eli Zaretskii
  2023-08-12  6:47                       ` Eli Zaretskii
  0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2023-08-03  8:01 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: luangruo, 64310

Ping!  Can we make further progress in this matter?

> From: Pankaj Jangid <pankaj@codeisgreat.org>
> Cc: Eli Zaretskii <eliz@gnu.org>,  64310@debbugs.gnu.org
> Date: Thu, 27 Jul 2023 10:48:55 +0530
> 
> Po Lu <luangruo@yahoo.com> writes:
> 
> >>> Nothing changes. When there is no default email handler configured
> >>> i.e. when Firefox is set to ask each time. It shows two options for
> >>> Emacs - (1) Emacs(Mail, Client) (2) Emacs (Mail). When I select the
> >>> first one, it shows error that I reported. If I select option (2), Emacs
> >>> launches without any warning (desired behaviour).
> >
> > I tried to reproduce this myself a few weeks ago, but I guess the line
> > eater ate my reply.
> >
> > Unfortunately, the desktop file works as expected.  Are you sure the
> > emacsclient you've installed corresponds to a PGTK build of Emacs?  If
> > it's part of an Emacs installation built with another window system,
> > PGTK-specific code within won't be present, demonstrating symptoms
> > similar to what you are experiencing.
> 
> I have no other emacs installation. So I am pretty sure this is PGTK
> build. Using following command to build,
> 
> --8<---------------cut here---------------start------------->8---
> 	    ./autogen.sh \
> 		&& ./configure --prefix=$HOME/.local \
> 			       --with-tree-sitter \
> 			       --with-pgtk \
> 			       CFLAGS='-O0 -g3' \
> 		&& make -j`nproc` \
> 		&& make install
> --8<---------------cut here---------------end--------------->8---
> 
> 
> The output of "ldd" against emacs and emacsclient from my path
> are as follows,
> 
> --8<---------------cut here---------------start------------->8---
> $ ldd /home/pankaj/.local/bin/emacs-29.1 
> 	linux-vdso.so.1 (0x00007ffe87159000)
> 	libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3.so.0 (0x00007f7485800000)
> 	libgdk-3.so.0 => /lib/x86_64-linux-gnu/libgdk-3.so.0 (0x00007f7486a54000)
> 	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7486a35000)
> 	libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f7486197000)
> 	libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f7486093000)
> 	libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f74856dc000)
> 	libgdk_pixbuf-2.0.so.0 => /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007f7486065000)
> 	libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f74854fe000)
> 	libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f748549f000)
> 	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f7485367000)
> 	libtiff.so.6 => /lib/x86_64-linux-gnu/libtiff.so.6 (0x00007f74852db000)
> 	libjpeg.so.62 => /lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007f7485248000)
> 	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f748602f000)
> 	libgif.so.7 => /lib/x86_64-linux-gnu/libgif.so.7 (0x00007f7486a26000)
> 	libwebpdemux.so.2 => /lib/x86_64-linux-gnu/libwebpdemux.so.2 (0x00007f7486029000)
> 	libwebp.so.7 => /lib/x86_64-linux-gnu/libwebp.so.7 (0x00007f74851d6000)
> 	libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f74850cd000)
> 	librsvg-2.so.2 => /lib/x86_64-linux-gnu/librsvg-2.so.2 (0x00007f7484600000)
> 	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7484521000)
> 	libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f74850c2000)
> 	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f74844cb000)
> 	libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f748431f000)
> 	libgpm.so.2 => /lib/x86_64-linux-gnu/libgpm.so.2 (0x00007f7486021000)
> 	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f74842ec000)
> 	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f7485094000)
> 	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f7484221000)
> 	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f74841d6000)
> 	libotf.so.1 => /lib/x86_64-linux-gnu/libotf.so.1 (0x00007f74841bd000)
> 	libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f7483e00000)
> 	liblcms2.so.2 => /lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f7484158000)
> 	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f7484088000)
> 	libjansson.so.4 => /lib/x86_64-linux-gnu/libjansson.so.4 (0x00007f7484078000)
> 	libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f7483d7f000)
> 	libtree-sitter.so.0 => /usr/local/lib/libtree-sitter.so.0 (0x00007f7484047000)
> 	libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f7483c20000)
> 	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7483a3f000)
> 	libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f748403f000)
> 	libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f748402e000)
> 	libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f7483a26000)
> 	libfribidi.so.0 => /lib/x86_64-linux-gnu/libfribidi.so.0 (0x00007f7483a0a000)
> 	libcairo-gobject.so.2 => /lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x00007f7484023000)
> 	libatk-1.0.so.0 => /lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f74839e1000)
> 	libepoxy.so.0 => /lib/x86_64-linux-gnu/libepoxy.so.0 (0x00007f74838b2000)
> 	libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007f748389e000)
> 	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f748375c000)
> 	libatk-bridge-2.0.so.0 => /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 (0x00007f7483720000)
> 	libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f7483718000)
> 	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f74836d2000)
> 	libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f74836c0000)
> 	libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007f74836b6000)
> 	libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007f74836b1000)
> 	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f748369c000)
> 	libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f748368f000)
> 	libXdamage.so.1 => /lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f748368a000)
> 	libXcomposite.so.1 => /lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f7483685000)
> 	libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f7483678000)
> 	libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f7483673000)
> 	libthai.so.0 => /lib/x86_64-linux-gnu/libthai.so.0 (0x00007f7483666000)
> 	libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f748363a000)
> 	libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f748358f000)
> 	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f748358a000)
> 	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f7483560000)
> 	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f7483550000)
> 	libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f7483543000)
> 	libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f74834e0000)
> 	libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f74834d4000)
> 	libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f748343a000)
> 	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f748337e000)
> 	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f748334d000)
> 	libLerc.so.4 => /lib/x86_64-linux-gnu/libLerc.so.4 (0x00007f74832b5000)
> 	libjbig.so.0 => /lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f74832a4000)
> 	libdeflate.so.0 => /lib/x86_64-linux-gnu/libdeflate.so.0 (0x00007f748327e000)
> 	/lib64/ld-linux-x86-64.so.2 (0x00007f7486b86000)
> 	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f748325e000)
> 	libicuuc.so.72 => /lib/x86_64-linux-gnu/libicuuc.so.72 (0x00007f748305e000)
> 	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f7483051000)
> 	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f7483026000)
> 	libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f7482ef2000)
> 	libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f7482ec1000)
> 	libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f7482d09000)
> 	libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f7482cf4000)
> 	libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007f7482ca6000)
> 	libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007f7482c5d000)
> 	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f7482c51000)
> 	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f7482b0a000)
> 	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f7482ae2000)
> 	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7482add000)
> 	libatspi.so.0 => /lib/x86_64-linux-gnu/libatspi.so.0 (0x00007f7482aa2000)
> 	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7482a9d000)
> 	libdatrie.so.1 => /lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f7482a91000)
> 	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f7482a8c000)
> 	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f7482800000)
> 	libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f7482a35000)
> 	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7482400000)
> 	libicudata.so.72 => /lib/x86_64-linux-gnu/libicudata.so.72 (0x00007f7480600000)
> 	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f7482a10000)
> 	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f74827d8000)
> 	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f74827c2000)
> 	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f74827b5000)
> $ ls -l /home/pankaj/.local/bin/emacsclient 
> -rwxr-xr-x 1 pankaj pankaj 231496 Jul 27 10:36 /home/pankaj/.local/bin/emacsclient
> $ ldd /home/pankaj/.local/bin/emacsclient 
> 	linux-vdso.so.1 (0x00007ffd5577b000)
> 	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe4f2221000)
> 	/lib64/ld-linux-x86-64.so.2 (0x00007fe4f2434000)
> $ which emacs
> /home/pankaj/.local/bin/emacs
> $ which emacsclient
> /home/pankaj/.local/bin/emacsclient
> $ ls -l `which emacs`
> lrwxrwxrwx 1 pankaj pankaj 10 Jul 27 10:36 /home/pankaj/.local/bin/emacs -> emacs-29.1
> --8<---------------cut here---------------end--------------->8---
> 
> 





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-08-03  8:01                     ` Eli Zaretskii
@ 2023-08-12  6:47                       ` Eli Zaretskii
  2023-08-12  7:06                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2023-08-12  6:47 UTC (permalink / raw)
  To: pankaj, luangruo; +Cc: 64310

Ping! Ping!

> Cc: luangruo@yahoo.com, 64310@debbugs.gnu.org
> Date: Thu, 03 Aug 2023 11:01:59 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> Ping!  Can we make further progress in this matter?
> 
> > From: Pankaj Jangid <pankaj@codeisgreat.org>
> > Cc: Eli Zaretskii <eliz@gnu.org>,  64310@debbugs.gnu.org
> > Date: Thu, 27 Jul 2023 10:48:55 +0530
> > 
> > Po Lu <luangruo@yahoo.com> writes:
> > 
> > >>> Nothing changes. When there is no default email handler configured
> > >>> i.e. when Firefox is set to ask each time. It shows two options for
> > >>> Emacs - (1) Emacs(Mail, Client) (2) Emacs (Mail). When I select the
> > >>> first one, it shows error that I reported. If I select option (2), Emacs
> > >>> launches without any warning (desired behaviour).
> > >
> > > I tried to reproduce this myself a few weeks ago, but I guess the line
> > > eater ate my reply.
> > >
> > > Unfortunately, the desktop file works as expected.  Are you sure the
> > > emacsclient you've installed corresponds to a PGTK build of Emacs?  If
> > > it's part of an Emacs installation built with another window system,
> > > PGTK-specific code within won't be present, demonstrating symptoms
> > > similar to what you are experiencing.
> > 
> > I have no other emacs installation. So I am pretty sure this is PGTK
> > build. Using following command to build,
> > 
> > --8<---------------cut here---------------start------------->8---
> > 	    ./autogen.sh \
> > 		&& ./configure --prefix=$HOME/.local \
> > 			       --with-tree-sitter \
> > 			       --with-pgtk \
> > 			       CFLAGS='-O0 -g3' \
> > 		&& make -j`nproc` \
> > 		&& make install
> > --8<---------------cut here---------------end--------------->8---
> > 
> > 
> > The output of "ldd" against emacs and emacsclient from my path
> > are as follows,
> > 
> > --8<---------------cut here---------------start------------->8---
> > $ ldd /home/pankaj/.local/bin/emacs-29.1 
> > 	linux-vdso.so.1 (0x00007ffe87159000)
> > 	libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3.so.0 (0x00007f7485800000)
> > 	libgdk-3.so.0 => /lib/x86_64-linux-gnu/libgdk-3.so.0 (0x00007f7486a54000)
> > 	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7486a35000)
> > 	libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f7486197000)
> > 	libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f7486093000)
> > 	libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f74856dc000)
> > 	libgdk_pixbuf-2.0.so.0 => /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007f7486065000)
> > 	libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f74854fe000)
> > 	libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f748549f000)
> > 	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f7485367000)
> > 	libtiff.so.6 => /lib/x86_64-linux-gnu/libtiff.so.6 (0x00007f74852db000)
> > 	libjpeg.so.62 => /lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007f7485248000)
> > 	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f748602f000)
> > 	libgif.so.7 => /lib/x86_64-linux-gnu/libgif.so.7 (0x00007f7486a26000)
> > 	libwebpdemux.so.2 => /lib/x86_64-linux-gnu/libwebpdemux.so.2 (0x00007f7486029000)
> > 	libwebp.so.7 => /lib/x86_64-linux-gnu/libwebp.so.7 (0x00007f74851d6000)
> > 	libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f74850cd000)
> > 	librsvg-2.so.2 => /lib/x86_64-linux-gnu/librsvg-2.so.2 (0x00007f7484600000)
> > 	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7484521000)
> > 	libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f74850c2000)
> > 	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f74844cb000)
> > 	libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f748431f000)
> > 	libgpm.so.2 => /lib/x86_64-linux-gnu/libgpm.so.2 (0x00007f7486021000)
> > 	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f74842ec000)
> > 	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f7485094000)
> > 	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f7484221000)
> > 	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f74841d6000)
> > 	libotf.so.1 => /lib/x86_64-linux-gnu/libotf.so.1 (0x00007f74841bd000)
> > 	libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f7483e00000)
> > 	liblcms2.so.2 => /lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f7484158000)
> > 	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f7484088000)
> > 	libjansson.so.4 => /lib/x86_64-linux-gnu/libjansson.so.4 (0x00007f7484078000)
> > 	libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f7483d7f000)
> > 	libtree-sitter.so.0 => /usr/local/lib/libtree-sitter.so.0 (0x00007f7484047000)
> > 	libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f7483c20000)
> > 	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7483a3f000)
> > 	libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f748403f000)
> > 	libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f748402e000)
> > 	libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f7483a26000)
> > 	libfribidi.so.0 => /lib/x86_64-linux-gnu/libfribidi.so.0 (0x00007f7483a0a000)
> > 	libcairo-gobject.so.2 => /lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x00007f7484023000)
> > 	libatk-1.0.so.0 => /lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f74839e1000)
> > 	libepoxy.so.0 => /lib/x86_64-linux-gnu/libepoxy.so.0 (0x00007f74838b2000)
> > 	libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007f748389e000)
> > 	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f748375c000)
> > 	libatk-bridge-2.0.so.0 => /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 (0x00007f7483720000)
> > 	libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f7483718000)
> > 	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f74836d2000)
> > 	libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f74836c0000)
> > 	libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007f74836b6000)
> > 	libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007f74836b1000)
> > 	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f748369c000)
> > 	libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f748368f000)
> > 	libXdamage.so.1 => /lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f748368a000)
> > 	libXcomposite.so.1 => /lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f7483685000)
> > 	libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f7483678000)
> > 	libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f7483673000)
> > 	libthai.so.0 => /lib/x86_64-linux-gnu/libthai.so.0 (0x00007f7483666000)
> > 	libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f748363a000)
> > 	libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f748358f000)
> > 	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f748358a000)
> > 	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f7483560000)
> > 	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f7483550000)
> > 	libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f7483543000)
> > 	libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f74834e0000)
> > 	libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f74834d4000)
> > 	libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f748343a000)
> > 	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f748337e000)
> > 	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f748334d000)
> > 	libLerc.so.4 => /lib/x86_64-linux-gnu/libLerc.so.4 (0x00007f74832b5000)
> > 	libjbig.so.0 => /lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f74832a4000)
> > 	libdeflate.so.0 => /lib/x86_64-linux-gnu/libdeflate.so.0 (0x00007f748327e000)
> > 	/lib64/ld-linux-x86-64.so.2 (0x00007f7486b86000)
> > 	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f748325e000)
> > 	libicuuc.so.72 => /lib/x86_64-linux-gnu/libicuuc.so.72 (0x00007f748305e000)
> > 	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f7483051000)
> > 	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f7483026000)
> > 	libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f7482ef2000)
> > 	libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f7482ec1000)
> > 	libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f7482d09000)
> > 	libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f7482cf4000)
> > 	libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007f7482ca6000)
> > 	libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007f7482c5d000)
> > 	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f7482c51000)
> > 	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f7482b0a000)
> > 	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f7482ae2000)
> > 	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7482add000)
> > 	libatspi.so.0 => /lib/x86_64-linux-gnu/libatspi.so.0 (0x00007f7482aa2000)
> > 	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7482a9d000)
> > 	libdatrie.so.1 => /lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f7482a91000)
> > 	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f7482a8c000)
> > 	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f7482800000)
> > 	libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f7482a35000)
> > 	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7482400000)
> > 	libicudata.so.72 => /lib/x86_64-linux-gnu/libicudata.so.72 (0x00007f7480600000)
> > 	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f7482a10000)
> > 	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f74827d8000)
> > 	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f74827c2000)
> > 	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f74827b5000)
> > $ ls -l /home/pankaj/.local/bin/emacsclient 
> > -rwxr-xr-x 1 pankaj pankaj 231496 Jul 27 10:36 /home/pankaj/.local/bin/emacsclient
> > $ ldd /home/pankaj/.local/bin/emacsclient 
> > 	linux-vdso.so.1 (0x00007ffd5577b000)
> > 	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe4f2221000)
> > 	/lib64/ld-linux-x86-64.so.2 (0x00007fe4f2434000)
> > $ which emacs
> > /home/pankaj/.local/bin/emacs
> > $ which emacsclient
> > /home/pankaj/.local/bin/emacsclient
> > $ ls -l `which emacs`
> > lrwxrwxrwx 1 pankaj pankaj 10 Jul 27 10:36 /home/pankaj/.local/bin/emacs -> emacs-29.1
> > --8<---------------cut here---------------end--------------->8---
> > 
> > 
> 
> 
> 
> 





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-08-12  6:47                       ` Eli Zaretskii
@ 2023-08-12  7:06                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-08-12  8:16                           ` Eli Zaretskii
  0 siblings, 1 reply; 20+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-12  7:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 64310, pankaj

Eli Zaretskii <eliz@gnu.org> writes:

> Ping! Ping!

I am at a loss here, because I'm incapable of reproducing the problem
myself: WAYLAND_DISPLAY is set when emacsclient is run from the desktop
entry, so Emacs just connects to that.

Do we have an option that prompts emacsclient to print the output it's
sending through the server socket?





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-08-12  7:06                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-08-12  8:16                           ` Eli Zaretskii
  2023-08-12  8:56                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2023-08-12  8:16 UTC (permalink / raw)
  To: Po Lu; +Cc: 64310, pankaj

> From: Po Lu <luangruo@yahoo.com>
> Cc: pankaj@codeisgreat.org,  64310@debbugs.gnu.org
> Date: Sat, 12 Aug 2023 15:06:58 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Ping! Ping!
> 
> I am at a loss here, because I'm incapable of reproducing the problem
> myself: WAYLAND_DISPLAY is set when emacsclient is run from the desktop
> entry, so Emacs just connects to that.

If the bug is not reproducible, we can close it as such.

> Do we have an option that prompts emacsclient to print the output it's
> sending through the server socket?

No, but it should be easy to add this: see send_to_emacs in
emacsclient.c.  You can also see what was received by the server if
you set server-log non-nil: then the server will log the received
directives in the " *server*" buffer.

Not sure how this would help you, given the description of the
original problem, though.  Am I missing something?





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-08-12  8:16                           ` Eli Zaretskii
@ 2023-08-12  8:56                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-08-17 16:51                               ` Pankaj Jangid
  0 siblings, 1 reply; 20+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-12  8:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 64310, pankaj

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: pankaj@codeisgreat.org,  64310@debbugs.gnu.org
>> Date: Sat, 12 Aug 2023 15:06:58 +0800
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > Ping! Ping!
>> 
>> I am at a loss here, because I'm incapable of reproducing the problem
>> myself: WAYLAND_DISPLAY is set when emacsclient is run from the desktop
>> entry, so Emacs just connects to that.
>
> If the bug is not reproducible, we can close it as such.
>
>> Do we have an option that prompts emacsclient to print the output it's
>> sending through the server socket?
>
> No, but it should be easy to add this: see send_to_emacs in
> emacsclient.c.  You can also see what was received by the server if
> you set server-log non-nil: then the server will log the received
> directives in the " *server*" buffer.
>
> Not sure how this would help you, given the description of the
> original problem, though.  Am I missing something?

It occured to me that such logs from Pankaj's machine might help me
devise a fix or the means to reproduce the problem myself.





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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-08-12  8:56                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-08-17 16:51                               ` Pankaj Jangid
  2023-08-24  6:16                                 ` Eli Zaretskii
  0 siblings, 1 reply; 20+ messages in thread
From: Pankaj Jangid @ 2023-08-17 16:51 UTC (permalink / raw)
  To: Po Lu; +Cc: 64310, Eli Zaretskii

Po Lu <luangruo@yahoo.com> writes:

>> If the bug is not reproducible, we can close it as such.
>>

It is reproducible at my end. But if it not widely encountered then it
should be noted in "known problems".

>>> Do we have an option that prompts emacsclient to print the output it's
>>> sending through the server socket?
>>
>> No, but it should be easy to add this: see send_to_emacs in
>> emacsclient.c.  You can also see what was received by the server if
>> you set server-log non-nil: then the server will log the received
>> directives in the " *server*" buffer.
>>
>> Not sure how this would help you, given the description of the
>> original problem, though.  Am I missing something?
>
> It occured to me that such logs from Pankaj's machine might help me
> devise a fix or the means to reproduce the problem myself.

Let me try to produce logs as suggested above. I will be able to do this
over the coming weekend.






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

* bug#64310: 29.0.92; pure-GTK warning under Wayland
  2023-08-17 16:51                               ` Pankaj Jangid
@ 2023-08-24  6:16                                 ` Eli Zaretskii
  0 siblings, 0 replies; 20+ messages in thread
From: Eli Zaretskii @ 2023-08-24  6:16 UTC (permalink / raw)
  To: Pankaj Jangid; +Cc: luangruo, 64310

Ping!  Any progress with producing the logs?

> From: Pankaj Jangid <pankaj@codeisgreat.org>
> Cc: Eli Zaretskii <eliz@gnu.org>,  64310@debbugs.gnu.org
> Date: Thu, 17 Aug 2023 22:21:05 +0530
> 
> Po Lu <luangruo@yahoo.com> writes:
> 
> >> If the bug is not reproducible, we can close it as such.
> >>
> 
> It is reproducible at my end. But if it not widely encountered then it
> should be noted in "known problems".
> 
> >>> Do we have an option that prompts emacsclient to print the output it's
> >>> sending through the server socket?
> >>
> >> No, but it should be easy to add this: see send_to_emacs in
> >> emacsclient.c.  You can also see what was received by the server if
> >> you set server-log non-nil: then the server will log the received
> >> directives in the " *server*" buffer.
> >>
> >> Not sure how this would help you, given the description of the
> >> original problem, though.  Am I missing something?
> >
> > It occured to me that such logs from Pankaj's machine might help me
> > devise a fix or the means to reproduce the problem myself.
> 
> Let me try to produce logs as suggested above. I will be able to do this
> over the coming weekend.
> 
> 





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

end of thread, other threads:[~2023-08-24  6:16 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-27  4:45 bug#64310: 29.0.92; pure-GTK warning under Wayland Pankaj Jangid
2023-06-28  0:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-01  8:41   ` Eli Zaretskii
2023-07-01  9:25   ` Pankaj Jangid
2023-07-01  9:43     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-01  9:53       ` Pankaj Jangid
2023-07-06  7:12         ` Eli Zaretskii
2023-07-06 11:45           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-13  9:30             ` Pankaj Jangid
2023-07-22 13:15               ` Eli Zaretskii
2023-07-22 13:38                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-26 13:54                   ` Eli Zaretskii
2023-07-27  5:18                   ` Pankaj Jangid
2023-08-03  8:01                     ` Eli Zaretskii
2023-08-12  6:47                       ` Eli Zaretskii
2023-08-12  7:06                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-12  8:16                           ` Eli Zaretskii
2023-08-12  8:56                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-17 16:51                               ` Pankaj Jangid
2023-08-24  6:16                                 ` Eli Zaretskii

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).