public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: xwin-xdg-menu is not showing menu in taskbar
Date: Tue, 20 Oct 2020 22:55:35 -0600	[thread overview]
Message-ID: <3edd1cd4-f368-3e61-d01f-e7cee0f3f265@SystematicSw.ab.ca> (raw)
In-Reply-To: <30025f38-7722-adea-2df5-b6de4b816eb4@scytek.de>

On 2020-10-09 09:53, Volker Quetschke wrote:
> Well, it is showing up with two processes in the windows task manager, with one
> consuming 15% or so of the CPU, but the icon never appears in the task bar.
> 
> The system is a fresh install of cygwin 64 bit version on a new laptop - see
> attached cygcheck.out.
> 
> To reproduce this the x server is started with the "XWin Server" entry under
> "Cygwin-X" on the Start Menu.
> 
> The menu actually worked for me in the beginning and I managed to pinpoint what
> broke it. Originally I had only xorg-server, xinit and xclock installed. That
> worked, the x server and the menu came up quickly, but xclock complained about
> missing fonts. So I installed the 6 xorg-x11-fonts-* packages. That broke it.
> 
> I uninstalled the six fonts again and reinstalled them one after the other. With
> all except
>    xorg-x11-fonts-ethiopic
> installed the menu keeps working as expected. No, I didn't try yet if the
> ethiopic font breaks it again when I install it.

I just managed to restore X-Win functionality by renaming ~/.startxwinrc and
running the following commands, which I have now installed in permanent
postinstall scripts, to ensure that mime type and icon caches are updated:

$ head /etc/postinstall/zp_[ac]*.dash
==> /etc/postinstall/zp_all-icon-themes.dash <==
#!/bin/dash
# zp_all-icon-themes.dash - rebuild all icon theme caches where index exists

if [ -x /usr/bin/gtk-update-icon-cache ]
then
    for index in /usr/share/icons/*/index.theme \
                /usr/*/sys-root/*/share/icons/*/index.theme
    do
        dir=${index%/*}
        /usr/bin/gtk-update-icon-cache --force $dir || :

==> /etc/postinstall/zp_cache-shared-mime-info.dash <==
#!/bin/dash
# zp_cache-shared-mime-info.dash - rebuild shared mime info caches

[ -x /usr/bin/update-mime-database ] && [ -d /usr/share/mime ] && \
    /usr/bin/update-mime-database /usr/share/mime || :

You might also want to force rebuild the font cache by running:

	$ /etc/postinstall/zp_fontconfig_cache_1.sh

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

  reply	other threads:[~2020-10-21  4:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-09 15:53 Volker Quetschke
2020-10-21  4:55 ` Brian Inglis [this message]
2020-10-21 17:01   ` Achim Gratz
2020-10-21 17:53     ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3edd1cd4-f368-3e61-d01f-e7cee0f3f265@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).