Failed to install a flatpak with extra data: No such file or directory
Bastien Nocera
hadess at hadess.net
Sun Sep 16 16:13:53 UTC 2018
On Sun, 2018-09-16 at 23:06 +0800, Robin Lee wrote:
> On Sat, Sep 15, 2018 at 9:25 PM Bastien Nocera <hadess at hadess.net>
> wrote:
> >
> > On Sat, 2018-09-15 at 07:37 +0800, Robin Lee wrote:
> > > Hi,
> > >
> > > I am trying to update the flatpak for WPS office.
> > >
> > > The current manifest json:
> > > https://paste.fedoraproject.org/paste/KLxZPndPrWy5eCWPvTqSsg
> > >
> > > But when I tried to install the flatpak. It finally failed with
> > > error: Failed to install com.wps.WPS/x86_64/stable: No such file
> > > or
> > > directory
> > >
> > > Full output of 'flatpak -v --user install temprepo com.wps.WPS
> > > -y':
> > > https://paste.fedoraproject.org/paste/aW4f5EPBZKzBng~55w-RWA
> > >
> > > It is not clear what file is expected at this step of
> > > installation.
> > > The 'apply_extra'
> > > script was successfully run.
> >
> > I believe those are the errors:
> > flatpak install: Not exporting file com.wps.WPS-wps-
> > template.desktop of unsupported type.
> > flatpak install: Not exporting file com.wps.WPS-wpp-
> > template.desktop of unsupported type.
> > flatpak install: Not exporting file com.wps.WPS-et-template.desktop
> > of unsupported type.
> > flatpak install: Non-prefixed filename appurl.desktop in app
> > com.wps.WPS, removing.
>
> I clean up all the warnings, and the final failure is also gone.
Great.
> >
> > I believe that you need to check what desktop files get created,
> > and
> > make sure that there's only a single .desktop file with a name that
> > matches the package name, eg. com.wps.WPS.desktop.
>
> This is not true for this package. It successfully provides three
> desktop entries.
Are you sure that all the .desktop files are actually exported? Only
the ones prefixed correctly will likely be exported. If those are
separate programs, I would advise you to split them off, and re-use the
majority of the manifest as an imported module, so as to make it easy
to de-duplicate.
> > I think this .desktop file also needs to be in the original package
> > (and icons) for the manifest to be accepted in flathub, as
> > otherwise it
> > would be missing from the details pages.
> >
More information about the Flatpak
mailing list