How to invoke the Shutdown dialog in Docky under Lubuntu 12.04












1















I want to create a button in Docky equivalent to the Shutdown button in LXpanel. I have found that I can create a .desktop file which runs lubuntu-logout and this does the trick. But when I try to drag that file into docky I get an icon that looks like a document. When I click on that icon it opens up the .desktop file. I have tried making the .desktop file executable.



Any suggestions as to how I can make the button run lubuntu-logout instead? What am I doing wrong?










share|improve this question
















bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please post your solution as an answer so we can vote you up!

    – Jorge Castro
    May 14 '12 at 19:26











  • Here's the link to your revision! askubuntu.com/revisions/136471/3

    – Jorge Castro
    May 14 '12 at 19:28











  • Now solved! When you right click in Lubuntu to select Create New>Shortcut you are provided with a dialog box which effectively results in a .desktop file. However, closer inspection of the .desktop file shows that it does not include the line: Type=Application As a result Docky interprets the shortcut as a text file. It therefore displays an icon that looks like a text document and clicking on it opens up a text editor. The solution is therefore to edit the .desktop file (say in Leafpad) and add the Type=Application line into the file.

    – Rob Corlett
    May 16 '12 at 9:30













  • Hi Rob, can you post that as an answer instead of a comment so we can vote you up?

    – Jorge Castro
    May 16 '12 at 12:28
















1















I want to create a button in Docky equivalent to the Shutdown button in LXpanel. I have found that I can create a .desktop file which runs lubuntu-logout and this does the trick. But when I try to drag that file into docky I get an icon that looks like a document. When I click on that icon it opens up the .desktop file. I have tried making the .desktop file executable.



Any suggestions as to how I can make the button run lubuntu-logout instead? What am I doing wrong?










share|improve this question
















bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Please post your solution as an answer so we can vote you up!

    – Jorge Castro
    May 14 '12 at 19:26











  • Here's the link to your revision! askubuntu.com/revisions/136471/3

    – Jorge Castro
    May 14 '12 at 19:28











  • Now solved! When you right click in Lubuntu to select Create New>Shortcut you are provided with a dialog box which effectively results in a .desktop file. However, closer inspection of the .desktop file shows that it does not include the line: Type=Application As a result Docky interprets the shortcut as a text file. It therefore displays an icon that looks like a text document and clicking on it opens up a text editor. The solution is therefore to edit the .desktop file (say in Leafpad) and add the Type=Application line into the file.

    – Rob Corlett
    May 16 '12 at 9:30













  • Hi Rob, can you post that as an answer instead of a comment so we can vote you up?

    – Jorge Castro
    May 16 '12 at 12:28














1












1








1








I want to create a button in Docky equivalent to the Shutdown button in LXpanel. I have found that I can create a .desktop file which runs lubuntu-logout and this does the trick. But when I try to drag that file into docky I get an icon that looks like a document. When I click on that icon it opens up the .desktop file. I have tried making the .desktop file executable.



Any suggestions as to how I can make the button run lubuntu-logout instead? What am I doing wrong?










share|improve this question
















I want to create a button in Docky equivalent to the Shutdown button in LXpanel. I have found that I can create a .desktop file which runs lubuntu-logout and this does the trick. But when I try to drag that file into docky I get an icon that looks like a document. When I click on that icon it opens up the .desktop file. I have tried making the .desktop file executable.



Any suggestions as to how I can make the button run lubuntu-logout instead? What am I doing wrong?







12.04 shutdown lubuntu docky logout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 14 '12 at 19:25









Jorge Castro

36.6k106422617




36.6k106422617










asked May 13 '12 at 18:06









Rob CorlettRob Corlett

1916




1916





bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Please post your solution as an answer so we can vote you up!

    – Jorge Castro
    May 14 '12 at 19:26











  • Here's the link to your revision! askubuntu.com/revisions/136471/3

    – Jorge Castro
    May 14 '12 at 19:28











  • Now solved! When you right click in Lubuntu to select Create New>Shortcut you are provided with a dialog box which effectively results in a .desktop file. However, closer inspection of the .desktop file shows that it does not include the line: Type=Application As a result Docky interprets the shortcut as a text file. It therefore displays an icon that looks like a text document and clicking on it opens up a text editor. The solution is therefore to edit the .desktop file (say in Leafpad) and add the Type=Application line into the file.

    – Rob Corlett
    May 16 '12 at 9:30













  • Hi Rob, can you post that as an answer instead of a comment so we can vote you up?

    – Jorge Castro
    May 16 '12 at 12:28



















  • Please post your solution as an answer so we can vote you up!

    – Jorge Castro
    May 14 '12 at 19:26











  • Here's the link to your revision! askubuntu.com/revisions/136471/3

    – Jorge Castro
    May 14 '12 at 19:28











  • Now solved! When you right click in Lubuntu to select Create New>Shortcut you are provided with a dialog box which effectively results in a .desktop file. However, closer inspection of the .desktop file shows that it does not include the line: Type=Application As a result Docky interprets the shortcut as a text file. It therefore displays an icon that looks like a text document and clicking on it opens up a text editor. The solution is therefore to edit the .desktop file (say in Leafpad) and add the Type=Application line into the file.

    – Rob Corlett
    May 16 '12 at 9:30













  • Hi Rob, can you post that as an answer instead of a comment so we can vote you up?

    – Jorge Castro
    May 16 '12 at 12:28

















Please post your solution as an answer so we can vote you up!

– Jorge Castro
May 14 '12 at 19:26





Please post your solution as an answer so we can vote you up!

– Jorge Castro
May 14 '12 at 19:26













Here's the link to your revision! askubuntu.com/revisions/136471/3

– Jorge Castro
May 14 '12 at 19:28





Here's the link to your revision! askubuntu.com/revisions/136471/3

– Jorge Castro
May 14 '12 at 19:28













Now solved! When you right click in Lubuntu to select Create New>Shortcut you are provided with a dialog box which effectively results in a .desktop file. However, closer inspection of the .desktop file shows that it does not include the line: Type=Application As a result Docky interprets the shortcut as a text file. It therefore displays an icon that looks like a text document and clicking on it opens up a text editor. The solution is therefore to edit the .desktop file (say in Leafpad) and add the Type=Application line into the file.

– Rob Corlett
May 16 '12 at 9:30







Now solved! When you right click in Lubuntu to select Create New>Shortcut you are provided with a dialog box which effectively results in a .desktop file. However, closer inspection of the .desktop file shows that it does not include the line: Type=Application As a result Docky interprets the shortcut as a text file. It therefore displays an icon that looks like a text document and clicking on it opens up a text editor. The solution is therefore to edit the .desktop file (say in Leafpad) and add the Type=Application line into the file.

– Rob Corlett
May 16 '12 at 9:30















Hi Rob, can you post that as an answer instead of a comment so we can vote you up?

– Jorge Castro
May 16 '12 at 12:28





Hi Rob, can you post that as an answer instead of a comment so we can vote you up?

– Jorge Castro
May 16 '12 at 12:28










1 Answer
1






active

oldest

votes


















0















Go to /usr/share/applications/



Then search for Shut and it will bring Shut Down. Just drag and add it to your Docky




share|improve this answer
























  • @RobCorlett try to edit that .desktop file and in execute option write poweroff and say what you got

    – hingev
    May 13 '12 at 18:36











  • @RobCorlett i think no,just copy that .desktop file and paste it in your home and edit,is he wants root previliges?

    – hingev
    May 13 '12 at 18:42













  • @RobCorlett don't click on it just edit that file and in execution options place poweroff,did this done nothing?

    – hingev
    May 13 '12 at 18:46











  • @RobCorlett did you try to search in unity shut and click on Shut Down. Is it doing something?

    – hingev
    May 13 '12 at 18:50











  • @RobCorlett don't know but try this /usr/lib/syslinux/poweroff.com

    – hingev
    May 13 '12 at 18:55











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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
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%2f136471%2fhow-to-invoke-the-shutdown-dialog-in-docky-under-lubuntu-12-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0















Go to /usr/share/applications/



Then search for Shut and it will bring Shut Down. Just drag and add it to your Docky




share|improve this answer
























  • @RobCorlett try to edit that .desktop file and in execute option write poweroff and say what you got

    – hingev
    May 13 '12 at 18:36











  • @RobCorlett i think no,just copy that .desktop file and paste it in your home and edit,is he wants root previliges?

    – hingev
    May 13 '12 at 18:42













  • @RobCorlett don't click on it just edit that file and in execution options place poweroff,did this done nothing?

    – hingev
    May 13 '12 at 18:46











  • @RobCorlett did you try to search in unity shut and click on Shut Down. Is it doing something?

    – hingev
    May 13 '12 at 18:50











  • @RobCorlett don't know but try this /usr/lib/syslinux/poweroff.com

    – hingev
    May 13 '12 at 18:55
















0















Go to /usr/share/applications/



Then search for Shut and it will bring Shut Down. Just drag and add it to your Docky




share|improve this answer
























  • @RobCorlett try to edit that .desktop file and in execute option write poweroff and say what you got

    – hingev
    May 13 '12 at 18:36











  • @RobCorlett i think no,just copy that .desktop file and paste it in your home and edit,is he wants root previliges?

    – hingev
    May 13 '12 at 18:42













  • @RobCorlett don't click on it just edit that file and in execution options place poweroff,did this done nothing?

    – hingev
    May 13 '12 at 18:46











  • @RobCorlett did you try to search in unity shut and click on Shut Down. Is it doing something?

    – hingev
    May 13 '12 at 18:50











  • @RobCorlett don't know but try this /usr/lib/syslinux/poweroff.com

    – hingev
    May 13 '12 at 18:55














0












0








0








Go to /usr/share/applications/



Then search for Shut and it will bring Shut Down. Just drag and add it to your Docky




share|improve this answer














Go to /usr/share/applications/



Then search for Shut and it will bring Shut Down. Just drag and add it to your Docky





share|improve this answer












share|improve this answer



share|improve this answer










answered May 13 '12 at 18:10









hingevhingev

4,97943157




4,97943157













  • @RobCorlett try to edit that .desktop file and in execute option write poweroff and say what you got

    – hingev
    May 13 '12 at 18:36











  • @RobCorlett i think no,just copy that .desktop file and paste it in your home and edit,is he wants root previliges?

    – hingev
    May 13 '12 at 18:42













  • @RobCorlett don't click on it just edit that file and in execution options place poweroff,did this done nothing?

    – hingev
    May 13 '12 at 18:46











  • @RobCorlett did you try to search in unity shut and click on Shut Down. Is it doing something?

    – hingev
    May 13 '12 at 18:50











  • @RobCorlett don't know but try this /usr/lib/syslinux/poweroff.com

    – hingev
    May 13 '12 at 18:55



















  • @RobCorlett try to edit that .desktop file and in execute option write poweroff and say what you got

    – hingev
    May 13 '12 at 18:36











  • @RobCorlett i think no,just copy that .desktop file and paste it in your home and edit,is he wants root previliges?

    – hingev
    May 13 '12 at 18:42













  • @RobCorlett don't click on it just edit that file and in execution options place poweroff,did this done nothing?

    – hingev
    May 13 '12 at 18:46











  • @RobCorlett did you try to search in unity shut and click on Shut Down. Is it doing something?

    – hingev
    May 13 '12 at 18:50











  • @RobCorlett don't know but try this /usr/lib/syslinux/poweroff.com

    – hingev
    May 13 '12 at 18:55

















@RobCorlett try to edit that .desktop file and in execute option write poweroff and say what you got

– hingev
May 13 '12 at 18:36





@RobCorlett try to edit that .desktop file and in execute option write poweroff and say what you got

– hingev
May 13 '12 at 18:36













@RobCorlett i think no,just copy that .desktop file and paste it in your home and edit,is he wants root previliges?

– hingev
May 13 '12 at 18:42







@RobCorlett i think no,just copy that .desktop file and paste it in your home and edit,is he wants root previliges?

– hingev
May 13 '12 at 18:42















@RobCorlett don't click on it just edit that file and in execution options place poweroff,did this done nothing?

– hingev
May 13 '12 at 18:46





@RobCorlett don't click on it just edit that file and in execution options place poweroff,did this done nothing?

– hingev
May 13 '12 at 18:46













@RobCorlett did you try to search in unity shut and click on Shut Down. Is it doing something?

– hingev
May 13 '12 at 18:50





@RobCorlett did you try to search in unity shut and click on Shut Down. Is it doing something?

– hingev
May 13 '12 at 18:50













@RobCorlett don't know but try this /usr/lib/syslinux/poweroff.com

– hingev
May 13 '12 at 18:55





@RobCorlett don't know but try this /usr/lib/syslinux/poweroff.com

– hingev
May 13 '12 at 18:55


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f136471%2fhow-to-invoke-the-shutdown-dialog-in-docky-under-lubuntu-12-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局