How to copy file to user's home directory in .spec file

Hi, I am using Fedora 10 linux. I created a .spec file, now I want to write something that will allow me to copy the file and save it to the user's desktop.

So how to do it.

Thanks Sunil Kumar Sahoo

+2


source to share


1 answer


RPMs are installed on a per-system basis, not per user, so you must place the file in the Desktop shared directory (not per user). I'm not sure where this directory is; check the documentation if your desktop infrastructure is (KDE or Gnome) and where Fedora configured the framework to host shared files.

The actual setup is to put the file in the correct location inside the RPM.



If you really want to create an icon for each user, I suggest submitting a script that does this, and which users should run once as some sort of "user activation".

+2


source







All Articles