QubesOS / qubes-issues

The Qubes OS Project issue tracker
https://www.qubes-os.org/doc/issue-tracking/
541 stars 48 forks source link

Duplicate entries in "Applications" list #1348

Closed bnvk closed 9 years ago

bnvk commented 9 years ago

Upon clicking on Add more shortcuts... via the Application Launcher Menu, certain (non default installed applications) display as duplicates in the Available list.

qubes-duplicate-app

The # of items in Available decrement once it has been added.

To test, try installing the app calligra-krita which displays 16 entries for me!

qubes-duplicate-app-2

Additionally, it doesn't seem to matter which item is selected for the shortcut, they all seem to work just fine when launching the app.

marmarek commented 9 years ago

When you hover over an entry, there will be a tooltip with actual command behind that entry. Does all have the same, or different commands?

adrelanos commented 9 years ago

Happens to me also for okular.

Does all have the same, or different commands?

All different.

adrelanos commented 9 years ago

In the AppVM. ls -la /usr/share/applications/kde4/okular*

-rw-r--r-- 1 root root 6450 Oct  9  2014 /usr/share/applications/kde4/okularApplication_comicbook.desktop
-rw-r--r-- 1 root root 5248 Oct  9  2014 /usr/share/applications/kde4/okularApplication_dvi.desktop
-rw-r--r-- 1 root root 3986 Oct  9  2014 /usr/share/applications/kde4/okularApplication_fax.desktop
-rw-r--r-- 1 root root 6472 Oct  9  2014 /usr/share/applications/kde4/okularApplication_fb.desktop
-rw-r--r-- 1 root root 5789 Oct  9  2014 /usr/share/applications/kde4/okularApplication_ghostview.desktop
-rw-r--r-- 1 root root 4288 Oct  9  2014 /usr/share/applications/kde4/okularApplication_kimgio.desktop
-rw-r--r-- 1 root root 5419 Oct  9  2014 /usr/share/applications/kde4/okularApplication_mobi.desktop
-rw-r--r-- 1 root root 4001 Oct  9  2014 /usr/share/applications/kde4/okularApplication_ooo.desktop
-rw-r--r-- 1 root root 6635 Oct  9  2014 /usr/share/applications/kde4/okularApplication_pdf.desktop
-rw-r--r-- 1 root root 5423 Oct  9  2014 /usr/share/applications/kde4/okularApplication_plucker.desktop
-rw-r--r-- 1 root root 5148 Oct  9  2014 /usr/share/applications/kde4/okularApplication_txt.desktop
-rw-r--r-- 1 root root 5224 Oct  9  2014 /usr/share/applications/kde4/okularApplication_xps.desktop
-rw-r--r-- 1 root root 4016 Oct  9  2014 /usr/share/applications/kde4/okular.desktop
adrelanos commented 9 years ago

diff /usr/share/applications/kde4/okularApplication_comicbook.desktop /usr/share/applications/kde4/okularApplication_dvi.desktop

2c2
< MimeType=application/x-cbz;application/x-cbr;application/x-cbt;
---
> MimeType=application/x-dvi;application/x-gzdvi;application/x-bzdvi;
133,181c133,182
< X-KDE-Keywords=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[ar]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[bg]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[bs]=cbr, cbz, cbt, Comic Book,stripovi
< X-KDE-Keywords[ca]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[ca@valencia]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[cs]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[da]=cbr,cbz,cbt,Comic Book
< X-KDE-Keywords[de]=cbr, cbz, cbt, Comic-Book
< X-KDE-Keywords[el]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[en_GB]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[es]=cbr, cbz, cbt, libro de cómic
< X-KDE-Keywords[et]=cbr, cbz, cbt, Comic Book, koomiks
< X-KDE-Keywords[fi]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[fr]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[ga]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[gl]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[hu]=cbr, cbz, cbt, Képregény
< X-KDE-Keywords[ia]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[is]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[it]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[ja]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[kk]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[km]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[ko]=cbr, cbz, cbt, Comic Book,만화책
< X-KDE-Keywords[lt]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[lv]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[mr]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[nb]=cbr, cbz, cbt, tegneserie
< X-KDE-Keywords[nds]=cbr, cbz, cbt, Comicbook
< X-KDE-Keywords[nl]=cbr, cbz, cbt, Stripverhaal
< X-KDE-Keywords[pa]=cbr, cbz, cbt, ਕਾਮਿਕ ਬੁੱਕ
< X-KDE-Keywords[pl]=cbr, cbz, cbt, Komiks
< X-KDE-Keywords[pt]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[pt_BR]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[ro]=cbr, cbz, cbt, benzi desenate, comic
< X-KDE-Keywords[ru]=cbr, cbz, cbt, Comic Book, комикс
< X-KDE-Keywords[sk]=cbr, cbz, cbt, Comic Book, Kniha komiksov
< X-KDE-Keywords[sl]=cbr, cbz, cbt, strip
< X-KDE-Keywords[sr]=cbr, cbz, cbt, Comic Book,комикбук
< X-KDE-Keywords[sr@ijekavian]=cbr, cbz, cbt, Comic Book,комикбук
< X-KDE-Keywords[sr@ijekavianlatin]=cbr, cbz, cbt, Comic Book,ComicBook
< X-KDE-Keywords[sr@latin]=cbr, cbz, cbt, Comic Book,ComicBook
< X-KDE-Keywords[sv]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[tr]=cbr, cbz, cbt, Comic Book
< X-KDE-Keywords[uk]=cbr;cbz;cbt;Comic Book;комікс
< X-KDE-Keywords[x-test]=xxcbr, cbz, cbt, Comic Bookxx
< X-KDE-Keywords[zh_CN]=cbr, cbz, cbt, Comic Book,漫画书,漫画,连环画
< X-KDE-Keywords[zh_TW]=cbr, cbz, cbt, Comic Book
---
> X-KDE-Keywords=dvi
> X-KDE-Keywords[ar]=dvi
> X-KDE-Keywords[bg]=dvi
> X-KDE-Keywords[bs]=dvi
> X-KDE-Keywords[ca]=dvi
> X-KDE-Keywords[ca@valencia]=dvi
> X-KDE-Keywords[cs]=dvi
> X-KDE-Keywords[da]=dvi
> X-KDE-Keywords[de]=dvi
> X-KDE-Keywords[el]=dvi
> X-KDE-Keywords[en_GB]=dvi
> X-KDE-Keywords[es]=dvi
> X-KDE-Keywords[et]=dvi
> X-KDE-Keywords[fi]=dvi
> X-KDE-Keywords[fr]=dvi
> X-KDE-Keywords[ga]=dvi
> X-KDE-Keywords[gl]=dvi
> X-KDE-Keywords[hu]=dvi
> X-KDE-Keywords[ia]=dvi
> X-KDE-Keywords[is]=dvi
> X-KDE-Keywords[it]=dvi
> X-KDE-Keywords[ja]=dvi
> X-KDE-Keywords[kk]=dvi
> X-KDE-Keywords[km]=dvi
> X-KDE-Keywords[ko]=dvi
> X-KDE-Keywords[lt]=dvi
> X-KDE-Keywords[lv]=dvi
> X-KDE-Keywords[mr]=dvi
> X-KDE-Keywords[nb]=dvi
> X-KDE-Keywords[nds]=DVI
> X-KDE-Keywords[nl]=dvi
> X-KDE-Keywords[pa]=dvi
> X-KDE-Keywords[pl]=dvi
> X-KDE-Keywords[pt]=dvi
> X-KDE-Keywords[pt_BR]=dvi
> X-KDE-Keywords[ro]=dvi
> X-KDE-Keywords[ru]=dvi
> X-KDE-Keywords[sk]=dvi
> X-KDE-Keywords[sl]=dvi
> X-KDE-Keywords[sr]=dvi,ДВИ
> X-KDE-Keywords[sr@ijekavian]=dvi,ДВИ
> X-KDE-Keywords[sr@ijekavianlatin]=dvi,DVI
> X-KDE-Keywords[sr@latin]=dvi,DVI
> X-KDE-Keywords[sv]=dvi
> X-KDE-Keywords[tr]=dvi
> X-KDE-Keywords[ug]=dvi
> X-KDE-Keywords[uk]=dvi
> X-KDE-Keywords[x-test]=xxdvixx
> X-KDE-Keywords[zh_CN]=dvi
> X-KDE-Keywords[zh_TW]=dvi

diff /usr/share/applications/kde4/okular.desktop /usr/share/applications/kde4/okularApplication_dvi.desktop

1a2
> MimeType=application/x-dvi;application/x-gzdvi;application/x-bzdvi;
129d129
< X-DocPath=okular/index.html
131,132c131,182
< Categories=Qt;KDE;Graphics;Office;Viewer;
< MimeType=application/vnd.kde.okular-archive;
---
> Categories=Qt;KDE;Graphics;Viewer;
> NoDisplay=true
> X-KDE-Keywords=dvi
> X-KDE-Keywords[ar]=dvi
> X-KDE-Keywords[bg]=dvi
> X-KDE-Keywords[bs]=dvi
> X-KDE-Keywords[ca]=dvi
> X-KDE-Keywords[ca@valencia]=dvi
> X-KDE-Keywords[cs]=dvi
> X-KDE-Keywords[da]=dvi
> X-KDE-Keywords[de]=dvi
> X-KDE-Keywords[el]=dvi
> X-KDE-Keywords[en_GB]=dvi
> X-KDE-Keywords[es]=dvi
> X-KDE-Keywords[et]=dvi
> X-KDE-Keywords[fi]=dvi
> X-KDE-Keywords[fr]=dvi
> X-KDE-Keywords[ga]=dvi
> X-KDE-Keywords[gl]=dvi
> X-KDE-Keywords[hu]=dvi
> X-KDE-Keywords[ia]=dvi
> X-KDE-Keywords[is]=dvi
> X-KDE-Keywords[it]=dvi
> X-KDE-Keywords[ja]=dvi
> X-KDE-Keywords[kk]=dvi
> X-KDE-Keywords[km]=dvi
> X-KDE-Keywords[ko]=dvi
> X-KDE-Keywords[lt]=dvi
> X-KDE-Keywords[lv]=dvi
> X-KDE-Keywords[mr]=dvi
> X-KDE-Keywords[nb]=dvi
> X-KDE-Keywords[nds]=DVI
> X-KDE-Keywords[nl]=dvi
> X-KDE-Keywords[pa]=dvi
> X-KDE-Keywords[pl]=dvi
> X-KDE-Keywords[pt]=dvi
> X-KDE-Keywords[pt_BR]=dvi
> X-KDE-Keywords[ro]=dvi
> X-KDE-Keywords[ru]=dvi
> X-KDE-Keywords[sk]=dvi
> X-KDE-Keywords[sl]=dvi
> X-KDE-Keywords[sr]=dvi,ДВИ
> X-KDE-Keywords[sr@ijekavian]=dvi,ДВИ
> X-KDE-Keywords[sr@ijekavianlatin]=dvi,DVI
> X-KDE-Keywords[sr@latin]=dvi,DVI
> X-KDE-Keywords[sv]=dvi
> X-KDE-Keywords[tr]=dvi
> X-KDE-Keywords[ug]=dvi
> X-KDE-Keywords[uk]=dvi
> X-KDE-Keywords[x-test]=xxdvixx
> X-KDE-Keywords[zh_CN]=dvi
> X-KDE-Keywords[zh_TW]=dvi
adrelanos commented 9 years ago

sudo apt-get install krita

ls -la /usr/share/applications/kde4/krita*

-rw-r--r-- 1 root root 1368 Aug 12  2014 /usr/share/applications/kde4/krita_bmp.desktop
-rw-r--r-- 1 root root 3812 Oct 18  2014 /usr/share/applications/kde4/krita.desktop
-rw-r--r-- 1 root root 4947 Aug 12  2014 /usr/share/applications/kde4/krita_exr.desktop
-rw-r--r-- 1 root root 1353 Aug 12  2014 /usr/share/applications/kde4/krita_flipbook.desktop
-rw-r--r-- 1 root root 4947 Aug 12  2014 /usr/share/applications/kde4/krita_jp2.desktop
-rw-r--r-- 1 root root 1373 Aug 12  2014 /usr/share/applications/kde4/krita_jpeg.desktop
-rw-r--r-- 1 root root 1484 Aug 12  2014 /usr/share/applications/kde4/krita_odg.desktop
-rw-r--r-- 1 root root 1420 Aug 12  2014 /usr/share/applications/kde4/krita_ora.desktop
-rw-r--r-- 1 root root 1485 Aug 12  2014 /usr/share/applications/kde4/krita_pdf.desktop
-rw-r--r-- 1 root root 1314 Aug 12  2014 /usr/share/applications/kde4/krita_png.desktop
-rw-r--r-- 1 root root 1510 Aug 12  2014 /usr/share/applications/kde4/krita_ppm.desktop
-rw-r--r-- 1 root root 1551 Aug 12  2014 /usr/share/applications/kde4/krita_psd.desktop
-rw-r--r-- 1 root root 1926 Aug 12  2014 /usr/share/applications/kde4/krita_raw.desktop
-rw-r--r-- 1 root root 1373 Aug 12  2014 /usr/share/applications/kde4/krita_tiff.desktop
-rw-r--r-- 1 root root 1375 Aug 12  2014 /usr/share/applications/kde4/krita_xcf.desktop
adrelanos commented 9 years ago

cd /usr/share/applications find . | grep _ find . | grep -

marmarek commented 9 years ago

On Tue, Oct 20, 2015 at 04:53:02AM -0700, Patrick Schleizer wrote:

NoDisplay=true

I think this is the key problem. I isn't supported by our appmenus extractor.

Best Regards, Marek Marczykowski-Górecki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

adrelanos commented 9 years ago

I was trying to generate a (hacky, incomplete, ) big list of files with package contents. apt-file list a > ./apt-file-output And then grep it for - (hypothesis "good") and _ (hypothesis "bad, skip").

But to check for NoDisplay=true will likely work and be more appropriate.


grep -r -i nodisplay /usr/share/applications

/usr/share/applications/gpk-prefs.desktop:NoDisplay=true
/usr/share/applications/mono-runtime-common.desktop:NoDisplay=true
/usr/share/applications/python2.7.desktop:NoDisplay=true
/usr/share/applications/nautilus-connect-server.desktop:NoDisplay=true
/usr/share/applications/gpk-install-local-file.desktop:NoDisplay=true
/usr/share/applications/mutt.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_ppm.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_exr.desktop:NoDisplay=true
/usr/share/applications/kde4/calligra.desktop:NoDisplay=true
/usr/share/applications/kde4/kmailservice.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_jpeg.desktop:NoDisplay=true
/usr/share/applications/kde4/accountwizard.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_ooo.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_fax.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_ghostview.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_dvi.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_bmp.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_ora.desktop:NoDisplay=true
/usr/share/applications/kde4/akonaditray.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_psd.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_xcf.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_fb.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_pdf.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_kimgio.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_xps.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_flipbook.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_mobi.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_txt.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_raw.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_odg.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_tiff.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_pdf.desktop:NoDisplay=true
/usr/share/applications/kde4/keditbookmarks.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_plucker.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_jp2.desktop:NoDisplay=true
/usr/share/applications/kde4/ktelnetservice.desktop:NoDisplay=true
/usr/share/applications/kde4/krita_png.desktop:NoDisplay=true
/usr/share/applications/kde4/okularApplication_comicbook.desktop:NoDisplay=true
/usr/share/applications/geoclue-where-am-i.desktop:NoDisplay=true
/usr/share/applications/nautilus-autorun-software.desktop:NoDisplay=true
/usr/share/applications/gcr-prompter.desktop:NoDisplay=true
/usr/share/applications/gpk-dbus-service.desktop:NoDisplay=true
/usr/share/applications/notification-daemon.desktop:NoDisplay=true
/usr/share/applications/nautilus-classic.desktop:NoDisplay=true
/usr/share/applications/mono-runtime-terminal.desktop:NoDisplay=true
/usr/share/applications/nm-applet.desktop:NoDisplay=true
/usr/share/applications/gpk-log.desktop:NoDisplay=true
/usr/share/applications/python3.4.desktop:NoDisplay=true
/usr/share/applications/gcr-viewer.desktop:NoDisplay=true
marmarek commented 9 years ago

Automated announcement from builder-github

The package qubes-core-agent_3.0.21-1+deb8u1 has been pushed to the r3.0 testing repository for the Debian jessie template. To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

marmarek commented 9 years ago

Automated announcement from builder-github

The package qubes-core-agent_3.0.21-1+deb7u1 has been pushed to the r3.0 testing repository for the Debian wheezy template. To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing wheezy-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

marmarek commented 9 years ago

Automated announcement from builder-github

The package qubes-core-vm-3.0.21-1.fc20 has been pushed to the r3.0 testing repository for the Fedora fc20 template. To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r3.0-current-testing

Changes included in this update

marmarek commented 9 years ago

Automated announcement from builder-github

The package qubes-core-vm-3.0.21-1.fc21 has been pushed to the r3.0 testing repository for the Fedora fc21 template. To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r3.0-current-testing

Changes included in this update

marmarek commented 8 years ago

Automated announcement from builder-github

The package qubes-core-vm-3.0.21-1.fc20 has been pushed to the r3.0 stable repository for the Fedora fc20 template. To install this update, please use the standard update command:

sudo yum update

Changes included in this update

marmarek commented 8 years ago

Automated announcement from builder-github

The package qubes-core-vm-3.0.21-1.fc21 has been pushed to the r3.0 stable repository for the Fedora fc21 template. To install this update, please use the standard update command:

sudo yum update

Changes included in this update

marmarek commented 8 years ago

Automated announcement from builder-github

The package qubes-core-agent_3.0.21-1+deb8u1 has been pushed to the r3.0 stable repository for the Debian jessie template. To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

marmarek commented 8 years ago

Automated announcement from builder-github

The package qubes-core-agent_3.0.21-1+deb7u1 has been pushed to the r3.0 stable repository for the Debian wheezy template. To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update