clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
524 stars 29 forks source link

flatpak applications don't appear in launcher or as option when opening files #389

Closed cmarcelo closed 5 years ago

cmarcelo commented 5 years ago

It used to be the case that I could use gnome launcher to load applications installed with flatpak, but I've noticed this stopped working for a few weeks.

Also: when opening a pptx file from the web-browser, Libreoffice (from flatpak) is not shown as an option.

Maybe the MIME or desktop files for flatpak are not being queried anymore?

$ flatpak list
Ref                                                Options       
com.spotify.Client/x86_64/stable                   system,current
org.libreoffice.LibreOffice/x86_64/stable          system,current
org.videolan.VLC/x86_64/stable                     system,current
org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6    system,runtime
org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08  system,runtime
org.freedesktop.Platform.ffmpeg/x86_64/1.6         system,runtime
org.freedesktop.Platform.html5-codecs/x86_64/18.08 system,runtime
org.freedesktop.Platform/x86_64/1.6                system,runtime
org.freedesktop.Platform/x86_64/18.08              system,runtime
org.gtk.Gtk3theme.Arc/x86_64/3.22                  system,runtime
org.gtk.Gtk3theme.Materia/x86_64/3.22              system,runtime
org.kde.Platform/x86_64/5.12                       system,runtime
$ swupd info
Installed version: 27420
Version URL:       https://cdn.download.clearlinux.org/update/
Content URL:       https://cdn.download.clearlinux.org/update/
$ sudo swupd bundle-list | column
acl                 games
acpica-unix2                gdb
alsa-utils              gimp
atom                    git
bc                  global
bmap-tools              go-basic
bootloader              gpgme
c-basic                 gzip
cabextract              htop
casync                  httpd
cloc                    icdiff
cloud-api               inotify-tools
containers-basic            intltool
containers-virt             iproute2
cpio                    irssi
cryptography                joe
curl                    jq
darktable               kbd
desktop                 keepassxc
desktop-apps                kernel-install
desktop-apps-extras         kernel-native
desktop-assets              koji
desktop-autostart           kvm-host
desktop-dev             less
desktop-gnomelibs           libX11client
desktop-i3              libva-utils
desktop-kde             libxml2
desktop-kde-apps            libxslt
desktop-kde-libs            linux-dev
desktop-locales             linux-tools
dev-utils               llvm
dev-utils-dev               lua-basic
devpkg-at-spi2-atk          mail-utils
devpkg-at-spi2-core         mail-utils-dev
devpkg-atk              make
devpkg-base             mercurial
devpkg-cairo                mixer
devpkg-cheese               mkosi
devpkg-clutter              mutt
devpkg-clutter-gst          nasm
devpkg-cogl             network-basic
devpkg-dbus             network-basic-dev
devpkg-elfutils             nfs-utils
devpkg-evolution            nginx
devpkg-evolution-data-server        openssh-server
devpkg-expat                openssl
devpkg-fontconfig           os-clr-on-clr
devpkg-freetype             os-core
devpkg-fribidi              os-core-dev
devpkg-gdk-pixbuf           os-core-update
devpkg-glib             os-core-update-dev
devpkg-gnome-desktop            os-core-update-index
devpkg-graphite             os-core-webproxy
devpkg-gsettings-desktop-schemas    os-installer
devpkg-gst-plugins-base         os-testsuite
devpkg-gstreamer            os-utils-gui
devpkg-gtk3             os-utils-gui-dev
devpkg-harfbuzz             p11-kit
devpkg-icu4c                package-builder
devpkg-libX11               package-utils
devpkg-libXau               parallel
devpkg-libXdamage           patch
devpkg-libXdmcp             performance-tools
devpkg-libXext              perl-basic
devpkg-libXfixes            perl-basic-dev
devpkg-libXxf86vm           perl-extras
devpkg-libdrm               pidgin
devpkg-libepoxy             plzip
devpkg-libical              pmdk
devpkg-libpciaccess         postgresql
devpkg-libpng               powertop
devpkg-libpthread-stubs         python-basic
devpkg-libsecret            python-basic-dev
devpkg-libsoup              python-extras
devpkg-libxcb               python2-basic
devpkg-libxkbcommon         python3-basic
devpkg-libxml2              qt-basic
devpkg-mesa             qt-basic-dev
devpkg-nspr             shells
devpkg-nss              smartmontools
devpkg-openmpi              storage-utils
devpkg-openssl              storage-utils-dev
devpkg-orc              strace
devpkg-pango                subversion
devpkg-pcre             sudo
devpkg-pixman               sysadmin-basic
devpkg-qt3d             sysadmin-basic-dev
devpkg-qtbase               sysstat
devpkg-qtdeclarative            tcl-basic
devpkg-sqlite-autoconf          texinfo
devpkg-util-linux           thunderbird
devpkg-wayland              tmux
devpkg-wayland-protocols        tzdata
devpkg-webkitgtk            unbundle
devpkg-xorg-server          unzip
devpkg-xorgproto            user-basic
devpkg-xz               valgrind
devpkg-zlib             vim
diffoscope              virt-manager
diffutils               vlc
docbook-utils               web-server-basic
docutils                weechat
dosfstools              which
doxygen                 wpa_supplicant
editors                 x11-server
emacs                   x11-tools
ethtool                 xemacs
file                    xfce4-desktop
findutils               xfsprogs
firefox                 xz
fonttools               yasm
fossil                  znc
fuse                    zsh
fwupdate                zstd
anselmolsm commented 5 years ago

@cmarcelo just checking: which display manager are you using?

flatpak version currently packaged ships an env file for gdm, but if I'm not wrong, 1.2.0 includes a fix for this.

cmarcelo commented 5 years ago

@anselmolsm I'm using sddm. So I'm guessing that's the issue.

cmarcelo commented 5 years ago

@anselmolsm should we patch sddm (or its package) to look at the right places?

ahkok commented 5 years ago

confirmed broken @mrkz

mrkz commented 5 years ago

@ahkok same behavior? (using sddm)

anselmolsm commented 5 years ago

@cmarcelo I see flatpak 1.2.0 deploys a systemd/user-environment-generators , I guess that may help to have a dm-independent solution.

ahkok commented 5 years ago

@mrkz gnome. although a desktop restart today fixed my workspace in the office (it sees flatpaks again now in the apps browser)

anselmolsm commented 5 years ago

So flatpak package ships a file to setup environment but that seems to only handle the GDM case.

I'd like to find a common way to solve this for all desktop environments, so I thought about adding an env file at /usr/share/defaults/etc/profile.d/50-flatpak.sh to set XDG_DATA_DIRS accordingly. Opinions?

(BTW @cmarcelo, the sddm package's session scripts try to load /etc/profile, I'm sending an update to make it check the defaults/etc dir too).

cmarcelo commented 5 years ago

/usr/share/defaults/etc/profile.d/50-flatpak.sh to set XDG_DATA_DIRS accordingly

LGTM.

anselmolsm commented 5 years ago

flatpak 1.0.7-44 released in 28410 today should fix this.