I am packing .deb and I want to create folder on the Desktop I am creating folders using :

mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/128x128/apps/
mkdir -p $(CURDIR)/debian/uome/username/Desktop/myfolder

The ptoblem is usernmae above how can i enter the anyones's Ubuntu's username ;

Please Help

  • 1
    Packages should not create anything in any user's home directories. – muru Feb 9 '17 at 18:11
  • but how could I create .desktop file on the desktop? – AlexL Feb 9 '17 at 18:12
  • You don't. Whatever application this is for can create a launcher when the user runs it, but packages don't add anything to user home directories. – muru Feb 9 '17 at 18:13
  • 1
    Create a script which does the work, and have it run for users via a .desktop file in /etc/xdg/autostart instead. – Gunnar Hjalmarsson Feb 9 '17 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.