What the proper way to make a debian package launch an app at startup?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I have created a debian package that contains the following files



  1. mypackage.desktop

  2. mypackage

  3. control

  4. copyright

  5. packagedeb.sh


  6. mypackage.jar (generated from my source code)

I wrote some commands inside the mypackage file like:



cp usr/share/applications/mypackage.desktop ~/.config/autostart/


to copy the .desktop file into autostart directory.



But I cannot see mypackage.desktop file inside autostart.



How can I create a debian package that copies a .desktop file into the autostart folder to launch my app at startup?



I am using these instructions.










share|improve this question























  • Apart from the question: I don't think it is the correct/decent procedure for any package to make unnoticed, unmentioned changes locally while installing without specific confirmation from the user.
    – Jacob Vlijm
    Apr 18 at 10:33















up vote
1
down vote

favorite












I have created a debian package that contains the following files



  1. mypackage.desktop

  2. mypackage

  3. control

  4. copyright

  5. packagedeb.sh


  6. mypackage.jar (generated from my source code)

I wrote some commands inside the mypackage file like:



cp usr/share/applications/mypackage.desktop ~/.config/autostart/


to copy the .desktop file into autostart directory.



But I cannot see mypackage.desktop file inside autostart.



How can I create a debian package that copies a .desktop file into the autostart folder to launch my app at startup?



I am using these instructions.










share|improve this question























  • Apart from the question: I don't think it is the correct/decent procedure for any package to make unnoticed, unmentioned changes locally while installing without specific confirmation from the user.
    – Jacob Vlijm
    Apr 18 at 10:33













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have created a debian package that contains the following files



  1. mypackage.desktop

  2. mypackage

  3. control

  4. copyright

  5. packagedeb.sh


  6. mypackage.jar (generated from my source code)

I wrote some commands inside the mypackage file like:



cp usr/share/applications/mypackage.desktop ~/.config/autostart/


to copy the .desktop file into autostart directory.



But I cannot see mypackage.desktop file inside autostart.



How can I create a debian package that copies a .desktop file into the autostart folder to launch my app at startup?



I am using these instructions.










share|improve this question















I have created a debian package that contains the following files



  1. mypackage.desktop

  2. mypackage

  3. control

  4. copyright

  5. packagedeb.sh


  6. mypackage.jar (generated from my source code)

I wrote some commands inside the mypackage file like:



cp usr/share/applications/mypackage.desktop ~/.config/autostart/


to copy the .desktop file into autostart directory.



But I cannot see mypackage.desktop file inside autostart.



How can I create a debian package that copies a .desktop file into the autostart folder to launch my app at startup?



I am using these instructions.







package-management autostart debian-installer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 18 at 10:15









Zanna

48k13119227




48k13119227










asked Apr 18 at 9:53









Prakash Sharma

63




63











  • Apart from the question: I don't think it is the correct/decent procedure for any package to make unnoticed, unmentioned changes locally while installing without specific confirmation from the user.
    – Jacob Vlijm
    Apr 18 at 10:33

















  • Apart from the question: I don't think it is the correct/decent procedure for any package to make unnoticed, unmentioned changes locally while installing without specific confirmation from the user.
    – Jacob Vlijm
    Apr 18 at 10:33
















Apart from the question: I don't think it is the correct/decent procedure for any package to make unnoticed, unmentioned changes locally while installing without specific confirmation from the user.
– Jacob Vlijm
Apr 18 at 10:33





Apart from the question: I don't think it is the correct/decent procedure for any package to make unnoticed, unmentioned changes locally while installing without specific confirmation from the user.
– Jacob Vlijm
Apr 18 at 10:33
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026068%2fwhat-the-proper-way-to-make-a-debian-package-launch-an-app-at-startup%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026068%2fwhat-the-proper-way-to-make-a-debian-package-launch-an-app-at-startup%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error