Xpra: Ticket #2335: Empty "Start" menu in the HTML5 client

Here is a Docker file to reproduce the issue

FROM centos:7.6.1810
ENV LANGUAGE=en_US.UTF-8 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 PYTHONIOENCODING=UTF-8
RUN	curl https://xpra.org/repos/CentOS/xpra.repo >/etc/yum.repos.d/xpra.repo \
 &&	yum -y install epel-release \
 &&	yum -y install \
	xpra-2.5 \
	http://xpra.org/beta/CentOS/7/x86_64/xpra-html5-3.0-0.20190612r22922.el7_6.noarch.rpm \
	python-pyxdg \
	redhat-menus \
	xterm xev \
 &&	rm -rf /var/cache/yum/ \
 && sed -i 's/start-new-commands = no/start-new-commands = yes/' /etc/xpra/conf.d/60_server.conf \
 && echo 'bell = no' >/etc/xpra/conf.d/99_nobell.conf

Start as

docker run --rm --name=xpra_debug --net=host --mount type=tmpfs,destination=/run/user/0/xpra -v/etc/machine-id:/etc/machine-id $(docker build -q .) xpra start --daemon=no --bind-tcp=127.0.0.1:8080 --html=on --start=xterm -d menu

Even though, according to the log, the server reads .desktop-files in /usr/share/applications:

2019-06-16 18:04:37,395 Type=Application (<type 'unicode'>)
2019-06-16 18:04:37,395 VersionString= (<type 'str'>)
2019-06-16 18:04:37,395 Name=Xpra (<type 'unicode'>)
2019-06-16 18:04:37,396 GenericName= (<type 'str'>)
2019-06-16 18:04:37,396 NoDisplay=False (<type 'bool'>)
2019-06-16 18:04:37,396 Comment=Xpra GUI (<type 'unicode'>)
2019-06-16 18:04:37,396 Icon=xpra (<type 'unicode'>)
2019-06-16 18:04:37,396 Hidden=False (<type 'bool'>)
2019-06-16 18:04:37,396 OnlyShowIn=[] (<type 'generator'>)
2019-06-16 18:04:37,397 NotShowIn=[] (<type 'generator'>)
2019-06-16 18:04:37,397 Exec=xpra (<type 'unicode'>)
2019-06-16 18:04:37,397 TryExec= (<type 'str'>)
2019-06-16 18:04:37,397 Path= (<type 'str'>)
2019-06-16 18:04:37,397 Terminal=False (<type 'bool'>)
2019-06-16 18:04:37,397 MimeTypes=[] (<type 'generator'>)
2019-06-16 18:04:37,397 Categories=[u'Network', u'RemoteAccess'] (<type 'generator'>)
2019-06-16 18:04:37,397 StartupNotify=False (<type 'bool'>)
2019-06-16 18:04:37,397 StartupWMClass= (<type 'str'>)
2019-06-16 18:04:37,398 URL= (<type 'str'>)
2019-06-16 18:04:37,398 properties(Xpra)={'Comment': u'Xpra GUI', 'MimeTypes': [], 'StartupWMClass': '', 'NoDisplay': False, 'Name': u'Xpra', 'Exec': u'xpra', 'URL': '', 'TryExec': '', 'StartupNotify': False, 'OnlyShowIn': [], 'Terminal': False, 'GenericName': '', 'VersionString': '', 'Path': '', 'NotShowIn': [], 'Hidden': False, 'Type': u'Application', 'Categories': [u'Network', u'RemoteAccess'], 'Icon': u'xpra'}
2019-06-16 18:04:37,450 got icon data from '/usr/share/icons/xpra.png': 3011 bytes

it does not send them to the client and the "Start"-menu is empty.



Mon, 17 Jun 2019 04:11:07 GMT - Antoine Martin: status changed; resolution set

Fixed in r22965. (can easily be applied by hand)

I have no idea why the exact same check passed when I tried it, I hate javascript.

Thanks for the perfect bug report!


Sat, 23 Jan 2021 05:48:33 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2335