Adding a launcher item for a terminal program that has no UI The 2019 Stack Overflow Developer...
It's possible to achieve negative score?
Evaluating number of iteration with a certain map with While
Poison Arrows Piercing damage reduced to 0, do you still get poisoned?
Access elements in std::string where positon of string is greater than its size
"To split hairs" vs "To be pedantic"
Does duplicating a spell with wish count as casting that spell?
How to answer pointed "are you quitting" questioning when I don't want them to suspect
Fractional alignment
How to make payment on the internet without leaving a money trail?
I looked up a future colleague on linkedin before I started a job. I told my colleague about it and he seemed surprised. Should I apologize?
Which Sci-Fi work first showed weapon of galactic-scale mass destruction?
What is the steepest angle that a canal can be traversable without locks?
Patience, young "Padovan"
Where does the "burst of radiance" from Holy Weapon originate?
Why is Grand Jury testimony secret?
What do the Banks children have against barley water?
Should I use my personal or workplace e-mail when registering to external websites for work purpose?
How can I create a character who can assume the widest possible range of creature sizes?
Why Did Howard Stark Use All The Vibranium They Had On A Prototype Shield?
Can we apply L'Hospital's rule where the derivative is not continuous?
How to deal with fear of taking dependencies
What is the use of option -o in the useradd command?
is usb on wall sockets live all the time with out switches off
Why is the maximum length of openwrt’s root password 8 characters?
Adding a launcher item for a terminal program that has no UI
The 2019 Stack Overflow Developer Survey Results Are InHow can I create a launcher item for jvisualvm?Clicking Unity Launcher icon relaunches another instance of same appSet Multiple values for StartupWMClass (to group under same launcher in Unity)How to have Quicklist item launch in a Path?Icon size to provide for unity .desktop, and the syntax to reference itCreate a working link on desktopIcon missing when application is launchedUse desktop icon for running applicationHow to mark desktop file as trusted in 18.04Lyx does not appear in “Open with…” list, Ubuntu 18.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Please see the edit at the bottom!
I have followed here for adding an item to the launcher. Here are the contents of my new .desktop file:
[Desktop Entry]
Version=1.0
Name=OpenRefine
Comment=2.6-rc.2
Path=/home/foo/openrefine-2.6-rc.2
Exec=/home/foo/openrefine-2.6-rc.2/refine
Terminal=true
Type=Application
Categories=Utility;Application;
(no icon supplied by the application so none included, hopefully a default one will be used). desktop-file-validate passes without errors. So does desktop-file-install. Yet the new program does not show in dash :(
I have started out saving the .desktop file to .local/share/applications, so it is also confusing whether it should remain there after the desktop-file-install or rather it should have been created in some temporary place to begin with, rather than there.
Thanks for clarifying how this should be done.
Edit:
Notably, this program, OpenRefine, when started in a terminal, does not open a UI window. It only starts a web server and launches the default browser against it.
unity launcher
|
show 1 more comment
Please see the edit at the bottom!
I have followed here for adding an item to the launcher. Here are the contents of my new .desktop file:
[Desktop Entry]
Version=1.0
Name=OpenRefine
Comment=2.6-rc.2
Path=/home/foo/openrefine-2.6-rc.2
Exec=/home/foo/openrefine-2.6-rc.2/refine
Terminal=true
Type=Application
Categories=Utility;Application;
(no icon supplied by the application so none included, hopefully a default one will be used). desktop-file-validate passes without errors. So does desktop-file-install. Yet the new program does not show in dash :(
I have started out saving the .desktop file to .local/share/applications, so it is also confusing whether it should remain there after the desktop-file-install or rather it should have been created in some temporary place to begin with, rather than there.
Thanks for clarifying how this should be done.
Edit:
Notably, this program, OpenRefine, when started in a terminal, does not open a UI window. It only starts a web server and launches the default browser against it.
unity launcher
1
Your Exec= is wrong, /home must start with slash
– Sergiy Kolodyazhnyy
Jun 28 '16 at 5:13
It is correct in the real file, I just introduced that error while replacing the real local file path for pasting the question
– matt
Jun 30 '16 at 18:18
1
In the real file, do you by any chance use~?
– Jacob Vlijm
Jun 30 '16 at 18:42
Did, you try to do a reboot after you created that file? Sometimes after a reboot the icon which was missing in the dash before is then there.
– Videonauth
Jun 30 '16 at 18:44
@JacobVlijm I do deserve the question now :-) but no: the path is valid. I would like to also assume the verification command would otherwise issue an error. But double-checked the path now just to be on the safe side ― it is fine.
– matt
Jun 30 '16 at 19:45
|
show 1 more comment
Please see the edit at the bottom!
I have followed here for adding an item to the launcher. Here are the contents of my new .desktop file:
[Desktop Entry]
Version=1.0
Name=OpenRefine
Comment=2.6-rc.2
Path=/home/foo/openrefine-2.6-rc.2
Exec=/home/foo/openrefine-2.6-rc.2/refine
Terminal=true
Type=Application
Categories=Utility;Application;
(no icon supplied by the application so none included, hopefully a default one will be used). desktop-file-validate passes without errors. So does desktop-file-install. Yet the new program does not show in dash :(
I have started out saving the .desktop file to .local/share/applications, so it is also confusing whether it should remain there after the desktop-file-install or rather it should have been created in some temporary place to begin with, rather than there.
Thanks for clarifying how this should be done.
Edit:
Notably, this program, OpenRefine, when started in a terminal, does not open a UI window. It only starts a web server and launches the default browser against it.
unity launcher
Please see the edit at the bottom!
I have followed here for adding an item to the launcher. Here are the contents of my new .desktop file:
[Desktop Entry]
Version=1.0
Name=OpenRefine
Comment=2.6-rc.2
Path=/home/foo/openrefine-2.6-rc.2
Exec=/home/foo/openrefine-2.6-rc.2/refine
Terminal=true
Type=Application
Categories=Utility;Application;
(no icon supplied by the application so none included, hopefully a default one will be used). desktop-file-validate passes without errors. So does desktop-file-install. Yet the new program does not show in dash :(
I have started out saving the .desktop file to .local/share/applications, so it is also confusing whether it should remain there after the desktop-file-install or rather it should have been created in some temporary place to begin with, rather than there.
Thanks for clarifying how this should be done.
Edit:
Notably, this program, OpenRefine, when started in a terminal, does not open a UI window. It only starts a web server and launches the default browser against it.
unity launcher
unity launcher
edited Jul 15 '16 at 18:54
matt
asked Jun 28 '16 at 5:08
mattmatt
68261736
68261736
1
Your Exec= is wrong, /home must start with slash
– Sergiy Kolodyazhnyy
Jun 28 '16 at 5:13
It is correct in the real file, I just introduced that error while replacing the real local file path for pasting the question
– matt
Jun 30 '16 at 18:18
1
In the real file, do you by any chance use~?
– Jacob Vlijm
Jun 30 '16 at 18:42
Did, you try to do a reboot after you created that file? Sometimes after a reboot the icon which was missing in the dash before is then there.
– Videonauth
Jun 30 '16 at 18:44
@JacobVlijm I do deserve the question now :-) but no: the path is valid. I would like to also assume the verification command would otherwise issue an error. But double-checked the path now just to be on the safe side ― it is fine.
– matt
Jun 30 '16 at 19:45
|
show 1 more comment
1
Your Exec= is wrong, /home must start with slash
– Sergiy Kolodyazhnyy
Jun 28 '16 at 5:13
It is correct in the real file, I just introduced that error while replacing the real local file path for pasting the question
– matt
Jun 30 '16 at 18:18
1
In the real file, do you by any chance use~?
– Jacob Vlijm
Jun 30 '16 at 18:42
Did, you try to do a reboot after you created that file? Sometimes after a reboot the icon which was missing in the dash before is then there.
– Videonauth
Jun 30 '16 at 18:44
@JacobVlijm I do deserve the question now :-) but no: the path is valid. I would like to also assume the verification command would otherwise issue an error. But double-checked the path now just to be on the safe side ― it is fine.
– matt
Jun 30 '16 at 19:45
1
1
Your Exec= is wrong, /home must start with slash
– Sergiy Kolodyazhnyy
Jun 28 '16 at 5:13
Your Exec= is wrong, /home must start with slash
– Sergiy Kolodyazhnyy
Jun 28 '16 at 5:13
It is correct in the real file, I just introduced that error while replacing the real local file path for pasting the question
– matt
Jun 30 '16 at 18:18
It is correct in the real file, I just introduced that error while replacing the real local file path for pasting the question
– matt
Jun 30 '16 at 18:18
1
1
In the real file, do you by any chance use
~?– Jacob Vlijm
Jun 30 '16 at 18:42
In the real file, do you by any chance use
~?– Jacob Vlijm
Jun 30 '16 at 18:42
Did, you try to do a reboot after you created that file? Sometimes after a reboot the icon which was missing in the dash before is then there.
– Videonauth
Jun 30 '16 at 18:44
Did, you try to do a reboot after you created that file? Sometimes after a reboot the icon which was missing in the dash before is then there.
– Videonauth
Jun 30 '16 at 18:44
@JacobVlijm I do deserve the question now :-) but no: the path is valid. I would like to also assume the verification command would otherwise issue an error. But double-checked the path now just to be on the safe side ― it is fine.
– matt
Jun 30 '16 at 19:45
@JacobVlijm I do deserve the question now :-) but no: the path is valid. I would like to also assume the verification command would otherwise issue an error. But double-checked the path now just to be on the safe side ― it is fine.
– matt
Jun 30 '16 at 19:45
|
show 1 more comment
2 Answers
2
active
oldest
votes
You can use "Main Menu" app (install with sudo apt install alacarte).
Run it from Dash or from Terminal (alacarte).
Then you can add launcher item:
- Choose category from list on left
- Click "New item" button
- Insert needed information into fields
- Click "OK" and close.
Now you should have your icon on launcher.
I upvoted this, but this silently does nothing, same as the command line approach.
– matt
Jul 1 '16 at 17:20
add a comment |
I use
sh -c "cd /home/foo/openrefine-2.6-rc.2 && ./refine"
in the place of
/home/foo/openrefine-2.6-rc.2/refine
in the code above.
You can also use $HOME instead of /home/foo, where foo is your username.
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%2f792162%2fadding-a-launcher-item-for-a-terminal-program-that-has-no-ui%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use "Main Menu" app (install with sudo apt install alacarte).
Run it from Dash or from Terminal (alacarte).
Then you can add launcher item:
- Choose category from list on left
- Click "New item" button
- Insert needed information into fields
- Click "OK" and close.
Now you should have your icon on launcher.
I upvoted this, but this silently does nothing, same as the command line approach.
– matt
Jul 1 '16 at 17:20
add a comment |
You can use "Main Menu" app (install with sudo apt install alacarte).
Run it from Dash or from Terminal (alacarte).
Then you can add launcher item:
- Choose category from list on left
- Click "New item" button
- Insert needed information into fields
- Click "OK" and close.
Now you should have your icon on launcher.
I upvoted this, but this silently does nothing, same as the command line approach.
– matt
Jul 1 '16 at 17:20
add a comment |
You can use "Main Menu" app (install with sudo apt install alacarte).
Run it from Dash or from Terminal (alacarte).
Then you can add launcher item:
- Choose category from list on left
- Click "New item" button
- Insert needed information into fields
- Click "OK" and close.
Now you should have your icon on launcher.
You can use "Main Menu" app (install with sudo apt install alacarte).
Run it from Dash or from Terminal (alacarte).
Then you can add launcher item:
- Choose category from list on left
- Click "New item" button
- Insert needed information into fields
- Click "OK" and close.
Now you should have your icon on launcher.
answered Jun 30 '16 at 18:39
Ven3kVen3k
613
613
I upvoted this, but this silently does nothing, same as the command line approach.
– matt
Jul 1 '16 at 17:20
add a comment |
I upvoted this, but this silently does nothing, same as the command line approach.
– matt
Jul 1 '16 at 17:20
I upvoted this, but this silently does nothing, same as the command line approach.
– matt
Jul 1 '16 at 17:20
I upvoted this, but this silently does nothing, same as the command line approach.
– matt
Jul 1 '16 at 17:20
add a comment |
I use
sh -c "cd /home/foo/openrefine-2.6-rc.2 && ./refine"
in the place of
/home/foo/openrefine-2.6-rc.2/refine
in the code above.
You can also use $HOME instead of /home/foo, where foo is your username.
add a comment |
I use
sh -c "cd /home/foo/openrefine-2.6-rc.2 && ./refine"
in the place of
/home/foo/openrefine-2.6-rc.2/refine
in the code above.
You can also use $HOME instead of /home/foo, where foo is your username.
add a comment |
I use
sh -c "cd /home/foo/openrefine-2.6-rc.2 && ./refine"
in the place of
/home/foo/openrefine-2.6-rc.2/refine
in the code above.
You can also use $HOME instead of /home/foo, where foo is your username.
I use
sh -c "cd /home/foo/openrefine-2.6-rc.2 && ./refine"
in the place of
/home/foo/openrefine-2.6-rc.2/refine
in the code above.
You can also use $HOME instead of /home/foo, where foo is your username.
edited 6 mins ago
Pablo Bianchi
3,11521636
3,11521636
answered Jul 29 '16 at 23:28
Martin NovyMartin Novy
4326
4326
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%2f792162%2fadding-a-launcher-item-for-a-terminal-program-that-has-no-ui%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
1
Your Exec= is wrong, /home must start with slash
– Sergiy Kolodyazhnyy
Jun 28 '16 at 5:13
It is correct in the real file, I just introduced that error while replacing the real local file path for pasting the question
– matt
Jun 30 '16 at 18:18
1
In the real file, do you by any chance use
~?– Jacob Vlijm
Jun 30 '16 at 18:42
Did, you try to do a reboot after you created that file? Sometimes after a reboot the icon which was missing in the dash before is then there.
– Videonauth
Jun 30 '16 at 18:44
@JacobVlijm I do deserve the question now :-) but no: the path is valid. I would like to also assume the verification command would otherwise issue an error. But double-checked the path now just to be on the safe side ― it is fine.
– matt
Jun 30 '16 at 19:45