Debian Package File Location
Posted: 2019-02-11 13:31
I have produced a .deb file for my Python application which works. I want to to check that I have done things correctly, but there is so much documentation that it's difficult to see what I have done wrong.
/usr/share/applications contains <myapp>.desktop
/usr/bin contains a shortcut created by a bash script on installation
/usr/share/<myapp> contains everything else.
There are several Lintian errors/warnings:
A few like this referring to directory permissions, which I don't understand as they refer to directories created by the system:
W: <myapp>: non-standard-dir-perm usr/ 0775 != 0755
These all refer to the desktop file - are these not allowed?
E: <myapp>: executable-desktop-file usr/share/applications/<myapp>.desktop 0755
W: <myapp>: executable-not-elf-or-script usr/share/applications/<myapp>.desktop
W: <myapp>: non-standard-file-perm usr/share/applications/<myapp>.desktop 0664 != 0644
It doesn't like the scripts that create/remove the shortcut either:
W: <myapp>: maintainer-script-ignores-errors postinst
W: <myapp>: maintainer-script-ignores-errors prerm
How am I supposed to create the shortcut without them? Perhaps I should be using something other than a shortcut to start the program?
/usr/share/applications contains <myapp>.desktop
/usr/bin contains a shortcut created by a bash script on installation
/usr/share/<myapp> contains everything else.
There are several Lintian errors/warnings:
A few like this referring to directory permissions, which I don't understand as they refer to directories created by the system:
W: <myapp>: non-standard-dir-perm usr/ 0775 != 0755
These all refer to the desktop file - are these not allowed?
E: <myapp>: executable-desktop-file usr/share/applications/<myapp>.desktop 0755
W: <myapp>: executable-not-elf-or-script usr/share/applications/<myapp>.desktop
W: <myapp>: non-standard-file-perm usr/share/applications/<myapp>.desktop 0664 != 0644
It doesn't like the scripts that create/remove the shortcut either:
W: <myapp>: maintainer-script-ignores-errors postinst
W: <myapp>: maintainer-script-ignores-errors prerm
How am I supposed to create the shortcut without them? Perhaps I should be using something other than a shortcut to start the program?