What is the file path for the Ubuntu Software Centre executable? usr/bin/ maybe?
Also what is the file name?
Suppose I write a program which outputs a file under a relative path (as opposed to a full/absolute path), let's say, the current path. Then I compile it and store the executable under some dir path1.
Now I run the executable while I am under a different dir path2.
I have created a debian package and added the following code in the postinst script:
if [ -d "$path" ]
rm -rf "$path"
echo 'File deleted successfully :)'
so that if the path is present, it would delete it during installation. It works perfectly when I install my .deb package through dpkg.