[opensuse] [13.2] How to integrate /opt/app/share/... into system
I've installed an application into /opt/<app>/. In its folder tree there are a bunch of files under /opt/<app>/share like appdata.xml, *.desktop, icons, locale, mime. Could anybody kindly tell me where I could find documentation or hints about the right way to integrate these app-data into the system (normaly at /usr/share). -- Mit freundlichen Grüßen Kind Regards Peter Ragosch -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 21.10.2015 um 17:23 schrieb Peter Ragosch:
I've installed an application into /opt/<app>/. In its folder tree there are a bunch of files under /opt/<app>/share like appdata.xml, *.desktop, icons, locale, mime.
Could anybody kindly tell me where I could find documentation or hints about the right way to integrate these app-data into the system (normaly at /usr/share).
Hi Peter, if there are no naming conflicts with existing files in /usr/share maybe the simplest way is linking like cp -al /opt/<app>/share/* /usr/share/ but maybe your application is looking for those file in that place where it install it an no other application needs those file. You should check this first. HTH Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Wed, 21 Oct 2015 18:28:22 +0200 schrieb Peter Sikorski GTL <peter@german-thai-link.de>:
Am 21.10.2015 um 17:23 schrieb Peter Ragosch:
I've installed an application into /opt/<app>/. In its folder tree there are a bunch of files under /opt/<app>/share like appdata.xml, *.desktop, icons, locale, mime.
Could anybody kindly tell me where I could find documentation or hints about the right way to integrate these app-data into the system (normaly at /usr/share).
Hi Peter,
if there are no naming conflicts with existing files in /usr/share maybe the simplest way is linking like cp -al /opt/<app>/share/* /usr/share/
but maybe your application is looking for those file in that place where it install it an no other application needs those file. You should check this first.
HTH Peter
Hallo Peter, many thanks for your advice. I didn't know, that cp is able to create hard- and symlinks too, not "only" copy. My goal, hope and requirement was to get the <app> into the SuSE start menu, whith out moving or linking the files by hand into the proper place. the one liner[1] cp -al /opt/<app>/share/* /usr/share/ did it! No clashes - requirements achieved. [1] an option "dry-run" would be nice for dummies like me ;). -- Mit freundlichen Grüßen Kind Regards Peter Ragosch -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Peter Ragosch
-
Peter Sikorski GTL