Add menu option to favoured app launcher in Ubuntu dock
I can't find the way to add a custom menu entry to a .desktop launcher.
In Unity I was able to add custom menu entryes to launcher like "Open customfile.txt" or "Open somespreadsheet.ods". Is that possible in Ubuntu Dock?
18.04 gnome-shell .desktop ubuntu-dock
add a comment |
I can't find the way to add a custom menu entry to a .desktop launcher.
In Unity I was able to add custom menu entryes to launcher like "Open customfile.txt" or "Open somespreadsheet.ods". Is that possible in Ubuntu Dock?
18.04 gnome-shell .desktop ubuntu-dock
add a comment |
I can't find the way to add a custom menu entry to a .desktop launcher.
In Unity I was able to add custom menu entryes to launcher like "Open customfile.txt" or "Open somespreadsheet.ods". Is that possible in Ubuntu Dock?
18.04 gnome-shell .desktop ubuntu-dock
I can't find the way to add a custom menu entry to a .desktop launcher.
In Unity I was able to add custom menu entryes to launcher like "Open customfile.txt" or "Open somespreadsheet.ods". Is that possible in Ubuntu Dock?
18.04 gnome-shell .desktop ubuntu-dock
18.04 gnome-shell .desktop ubuntu-dock
edited Jan 11 at 21:40


pomsky
30.1k1192125
30.1k1192125
asked May 4 '18 at 0:34
razor7razor7
701923
701923
add a comment |
add a comment |
                                1 Answer
                            1
                        
active
oldest
votes
Follow the steps below.
 - Copy - .desktopfile associated to your preferred application, say- app-name.desktopfrom- /usr/share/applications/to- ~/.local/share/applications/. You can do this by running the following command in Terminal
 
 - cp /usr/share/applications/app-name.desktop ~/.local/share/applications/
 
 
 - Open the - .desktopfile using a text-editor, for example by running
 
 - gedit ~/.local/share/applications/app-name.desktop
 
 
 - Look for a line beginning with - Actions=. If there is one, append- My-Custom-Action;to it. Otherwise add the following line
 
 - Actions=My-Custom-Action;
 
 
 - Write the following lines at end of the file: 
 
 - [Desktop Action My-Custom-Action]
 Name=Name of the Option
 Exec=command-you-want-ro-run
 
 
 - For example if you want to open Text editor, put - geditin place of- command-you-want-ro-run.
 
- Save the file. 
- Click on "Activities" and search for the application. 
- Right click on the application icon and select "Add to Favourites". It should be added to the Ubuntu dock. 
Now if you right click on the newly added application icon in the dock, you should see a "Name of the Option" entry in the context menu which should work as expected.
Similarly you can other options by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1031780%2fadd-menu-option-to-favoured-app-launcher-in-ubuntu-dock%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
Follow the steps below.
 - Copy - .desktopfile associated to your preferred application, say- app-name.desktopfrom- /usr/share/applications/to- ~/.local/share/applications/. You can do this by running the following command in Terminal
 
 - cp /usr/share/applications/app-name.desktop ~/.local/share/applications/
 
 
 - Open the - .desktopfile using a text-editor, for example by running
 
 - gedit ~/.local/share/applications/app-name.desktop
 
 
 - Look for a line beginning with - Actions=. If there is one, append- My-Custom-Action;to it. Otherwise add the following line
 
 - Actions=My-Custom-Action;
 
 
 - Write the following lines at end of the file: 
 
 - [Desktop Action My-Custom-Action]
 Name=Name of the Option
 Exec=command-you-want-ro-run
 
 
 - For example if you want to open Text editor, put - geditin place of- command-you-want-ro-run.
 
- Save the file. 
- Click on "Activities" and search for the application. 
- Right click on the application icon and select "Add to Favourites". It should be added to the Ubuntu dock. 
Now if you right click on the newly added application icon in the dock, you should see a "Name of the Option" entry in the context menu which should work as expected.
Similarly you can other options by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.
add a comment |
Follow the steps below.
 - Copy - .desktopfile associated to your preferred application, say- app-name.desktopfrom- /usr/share/applications/to- ~/.local/share/applications/. You can do this by running the following command in Terminal
 
 - cp /usr/share/applications/app-name.desktop ~/.local/share/applications/
 
 
 - Open the - .desktopfile using a text-editor, for example by running
 
 - gedit ~/.local/share/applications/app-name.desktop
 
 
 - Look for a line beginning with - Actions=. If there is one, append- My-Custom-Action;to it. Otherwise add the following line
 
 - Actions=My-Custom-Action;
 
 
 - Write the following lines at end of the file: 
 
 - [Desktop Action My-Custom-Action]
 Name=Name of the Option
 Exec=command-you-want-ro-run
 
 
 - For example if you want to open Text editor, put - geditin place of- command-you-want-ro-run.
 
- Save the file. 
- Click on "Activities" and search for the application. 
- Right click on the application icon and select "Add to Favourites". It should be added to the Ubuntu dock. 
Now if you right click on the newly added application icon in the dock, you should see a "Name of the Option" entry in the context menu which should work as expected.
Similarly you can other options by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.
add a comment |
Follow the steps below.
 - Copy - .desktopfile associated to your preferred application, say- app-name.desktopfrom- /usr/share/applications/to- ~/.local/share/applications/. You can do this by running the following command in Terminal
 
 - cp /usr/share/applications/app-name.desktop ~/.local/share/applications/
 
 
 - Open the - .desktopfile using a text-editor, for example by running
 
 - gedit ~/.local/share/applications/app-name.desktop
 
 
 - Look for a line beginning with - Actions=. If there is one, append- My-Custom-Action;to it. Otherwise add the following line
 
 - Actions=My-Custom-Action;
 
 
 - Write the following lines at end of the file: 
 
 - [Desktop Action My-Custom-Action]
 Name=Name of the Option
 Exec=command-you-want-ro-run
 
 
 - For example if you want to open Text editor, put - geditin place of- command-you-want-ro-run.
 
- Save the file. 
- Click on "Activities" and search for the application. 
- Right click on the application icon and select "Add to Favourites". It should be added to the Ubuntu dock. 
Now if you right click on the newly added application icon in the dock, you should see a "Name of the Option" entry in the context menu which should work as expected.
Similarly you can other options by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.
Follow the steps below.
 - Copy - .desktopfile associated to your preferred application, say- app-name.desktopfrom- /usr/share/applications/to- ~/.local/share/applications/. You can do this by running the following command in Terminal
 
 - cp /usr/share/applications/app-name.desktop ~/.local/share/applications/
 
 
 - Open the - .desktopfile using a text-editor, for example by running
 
 - gedit ~/.local/share/applications/app-name.desktop
 
 
 - Look for a line beginning with - Actions=. If there is one, append- My-Custom-Action;to it. Otherwise add the following line
 
 - Actions=My-Custom-Action;
 
 
 - Write the following lines at end of the file: 
 
 - [Desktop Action My-Custom-Action]
 Name=Name of the Option
 Exec=command-you-want-ro-run
 
 
 - For example if you want to open Text editor, put - geditin place of- command-you-want-ro-run.
 
- Save the file. 
- Click on "Activities" and search for the application. 
- Right click on the application icon and select "Add to Favourites". It should be added to the Ubuntu dock. 
Now if you right click on the newly added application icon in the dock, you should see a "Name of the Option" entry in the context menu which should work as expected.
Similarly you can other options by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.
answered May 4 '18 at 1:09


pomskypomsky
30.1k1192125
30.1k1192125
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1031780%2fadd-menu-option-to-favoured-app-launcher-in-ubuntu-dock%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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