On maandag 8 oktober 2018 09:16:38 CEST mariusz sapinski wrote:
> Hi,
> 
>     I'm not a regular Sailfish developer, so forgive  me if I'm asking an
> easy question. I have a small program which I used to modify and compile
> from time to time. I belive that since version 2.2.1 I get this kind of
> errors:
> 
> 
> Error on file "/home/deploy/installroot/usr/share/applications/*.desktop":
> No such file or directory
> 
> 
> I do not have /home/deploy directory.
> 
> The error come from these lines in yaml file:
> 
> 
> # All installed files
> Files:
> - '%{_bindir}'
> - '%{_datadir}/%{name}'
> - '%{_datadir}/applications/%{name}.desktop'
> - '%{_datadir}/icons/hicolor/*/apps/%{name}.png'
> 
> 
> I cannot find where bindir and datadir are defined. And in fact how exactly
> they should be defined?

You'll have to provide a a .desktop file for your application in the root of 
your project, using the name of your project (as defined by the TARGET variable 
in the .pro file, e.g. myproject.desktop)

The /home/deploy/installroot path is used within the SDK VM as a base path for 
all files that will become part of your package. So /home/deploy/installroot/
usr/share/applications will end up as /usr/share/applications on the phone.

grtz,
Sander


_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to