1

I'm building a .deb installer using install4j and I tried adding a Desktop icon to the user's desktop, but it doesn't work because dpkg requires sudo so it tries to copy the icon to /root/Desktop which is incorrect and doesn't exist.

We also have some application data that we want to purge on uninstall and I believe it is similarly not being deleted because it is running as sudo.

I do not have elevation set for unix, I believe this is a requirement of dpkg.

Dan Paris
  • 113
  • 3

1 Answers1

1

The user home directory of the original user is not available. The files in the user home directory should be created by the application itself, see

Debian packaging: deploying files to the user home directory

Ingo Kegel
  • 46,523
  • 10
  • 71
  • 102