Creating a launcher icon for sublime text 3 with the Exec=sublime_text instead of long path with shortcut icon retained in launcher

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











up vote
1
down vote

favorite












I created a shortcut for sublime text 3 (sublime_text.desktop)[The file with the good looking icon] and this happened,



my shortcut location and my executable location



error message



The code i used in sublime_text.desktop



#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Sublime Text
Comment=Sophisticated text editor for code, markup and prose
Icon=sublime-text
Exec=./sublime_text
Terminal=true
Categories=Development;IDE;


I've used many similar examples but didnt work(and yes double clicking sublime_text executable works).










share|improve this question























  • Please try to write the error codes in your question. Some guys like me are not capable to browse in imgur.
    – George Vasiliou
    Feb 7 '17 at 14:42










  • there are no error codes :/ sorry
    – Cruelplatypus67
    Feb 7 '17 at 14:43














up vote
1
down vote

favorite












I created a shortcut for sublime text 3 (sublime_text.desktop)[The file with the good looking icon] and this happened,



my shortcut location and my executable location



error message



The code i used in sublime_text.desktop



#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Sublime Text
Comment=Sophisticated text editor for code, markup and prose
Icon=sublime-text
Exec=./sublime_text
Terminal=true
Categories=Development;IDE;


I've used many similar examples but didnt work(and yes double clicking sublime_text executable works).










share|improve this question























  • Please try to write the error codes in your question. Some guys like me are not capable to browse in imgur.
    – George Vasiliou
    Feb 7 '17 at 14:42










  • there are no error codes :/ sorry
    – Cruelplatypus67
    Feb 7 '17 at 14:43












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I created a shortcut for sublime text 3 (sublime_text.desktop)[The file with the good looking icon] and this happened,



my shortcut location and my executable location



error message



The code i used in sublime_text.desktop



#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Sublime Text
Comment=Sophisticated text editor for code, markup and prose
Icon=sublime-text
Exec=./sublime_text
Terminal=true
Categories=Development;IDE;


I've used many similar examples but didnt work(and yes double clicking sublime_text executable works).










share|improve this question















I created a shortcut for sublime text 3 (sublime_text.desktop)[The file with the good looking icon] and this happened,



my shortcut location and my executable location



error message



The code i used in sublime_text.desktop



#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Sublime Text
Comment=Sophisticated text editor for code, markup and prose
Icon=sublime-text
Exec=./sublime_text
Terminal=true
Categories=Development;IDE;


I've used many similar examples but didnt work(and yes double clicking sublime_text executable works).







fedora desktop-shortcuts sublime-text






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 22:33









Rui F Ribeiro

38.2k1475125




38.2k1475125










asked Feb 7 '17 at 14:30









Cruelplatypus67

1063




1063











  • Please try to write the error codes in your question. Some guys like me are not capable to browse in imgur.
    – George Vasiliou
    Feb 7 '17 at 14:42










  • there are no error codes :/ sorry
    – Cruelplatypus67
    Feb 7 '17 at 14:43
















  • Please try to write the error codes in your question. Some guys like me are not capable to browse in imgur.
    – George Vasiliou
    Feb 7 '17 at 14:42










  • there are no error codes :/ sorry
    – Cruelplatypus67
    Feb 7 '17 at 14:43















Please try to write the error codes in your question. Some guys like me are not capable to browse in imgur.
– George Vasiliou
Feb 7 '17 at 14:42




Please try to write the error codes in your question. Some guys like me are not capable to browse in imgur.
– George Vasiliou
Feb 7 '17 at 14:42












there are no error codes :/ sorry
– Cruelplatypus67
Feb 7 '17 at 14:43




there are no error codes :/ sorry
– Cruelplatypus67
Feb 7 '17 at 14:43










1 Answer
1






active

oldest

votes

















up vote
1
down vote













I don't think that this will work:



Exec=./sublime_text


Use full path instead.



Exec=/full/path/to/sublime_text


To make it work with ./sublime_text you need to have .desktop file and executable file in the same current working directory (.)



If yet does not open, then check for permission issues.
When you call the .desktop file with a double click or from your DE apps menu then the .desktop file is executed as user.

If the folder you have your executable file is a root folder, execution will fail due to missing priveleges.

Users can not run root progs, unless the permissions have been set to apply such operation (allow execution by others).






share|improve this answer






















  • i specifically mentioned that i dont want to use full paths & without ./ it does not work either
    – Cruelplatypus67
    Feb 7 '17 at 14:42











  • @surajmandalcell What's wrong with full paths? In order to make ./ to work the .desktop file and the executable file it seems that must be in the same directory, but yet is not 100% sure that will work
    – George Vasiliou
    Feb 7 '17 at 14:45










  • it didnt :( sorry but i dont know what am i doing wrong
    – Cruelplatypus67
    Feb 7 '17 at 14:46










  • @surajmandalcell Check for permissions. If you call the .desktop file from a double click on your desktop or from your DE apps menu then the .desktop file is called as user. if the folder you have your executable is a root folder, will fail due to missing priveleges. Users can not run root progs, unless the permissions have been set to apply such operation.
    – George Vasiliou
    Feb 7 '17 at 14:49










  • it turns out that when i use "sudo nautilus" and launch my sublime_text.desktop then it works...and it does not work normally :( any help on permission issue??
    – Cruelplatypus67
    Feb 7 '17 at 15:08










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f343180%2fcreating-a-launcher-icon-for-sublime-text-3-with-the-exec-sublime-text-instead-o%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








up vote
1
down vote













I don't think that this will work:



Exec=./sublime_text


Use full path instead.



Exec=/full/path/to/sublime_text


To make it work with ./sublime_text you need to have .desktop file and executable file in the same current working directory (.)



If yet does not open, then check for permission issues.
When you call the .desktop file with a double click or from your DE apps menu then the .desktop file is executed as user.

If the folder you have your executable file is a root folder, execution will fail due to missing priveleges.

Users can not run root progs, unless the permissions have been set to apply such operation (allow execution by others).






share|improve this answer






















  • i specifically mentioned that i dont want to use full paths & without ./ it does not work either
    – Cruelplatypus67
    Feb 7 '17 at 14:42











  • @surajmandalcell What's wrong with full paths? In order to make ./ to work the .desktop file and the executable file it seems that must be in the same directory, but yet is not 100% sure that will work
    – George Vasiliou
    Feb 7 '17 at 14:45










  • it didnt :( sorry but i dont know what am i doing wrong
    – Cruelplatypus67
    Feb 7 '17 at 14:46










  • @surajmandalcell Check for permissions. If you call the .desktop file from a double click on your desktop or from your DE apps menu then the .desktop file is called as user. if the folder you have your executable is a root folder, will fail due to missing priveleges. Users can not run root progs, unless the permissions have been set to apply such operation.
    – George Vasiliou
    Feb 7 '17 at 14:49










  • it turns out that when i use "sudo nautilus" and launch my sublime_text.desktop then it works...and it does not work normally :( any help on permission issue??
    – Cruelplatypus67
    Feb 7 '17 at 15:08














up vote
1
down vote













I don't think that this will work:



Exec=./sublime_text


Use full path instead.



Exec=/full/path/to/sublime_text


To make it work with ./sublime_text you need to have .desktop file and executable file in the same current working directory (.)



If yet does not open, then check for permission issues.
When you call the .desktop file with a double click or from your DE apps menu then the .desktop file is executed as user.

If the folder you have your executable file is a root folder, execution will fail due to missing priveleges.

Users can not run root progs, unless the permissions have been set to apply such operation (allow execution by others).






share|improve this answer






















  • i specifically mentioned that i dont want to use full paths & without ./ it does not work either
    – Cruelplatypus67
    Feb 7 '17 at 14:42











  • @surajmandalcell What's wrong with full paths? In order to make ./ to work the .desktop file and the executable file it seems that must be in the same directory, but yet is not 100% sure that will work
    – George Vasiliou
    Feb 7 '17 at 14:45










  • it didnt :( sorry but i dont know what am i doing wrong
    – Cruelplatypus67
    Feb 7 '17 at 14:46










  • @surajmandalcell Check for permissions. If you call the .desktop file from a double click on your desktop or from your DE apps menu then the .desktop file is called as user. if the folder you have your executable is a root folder, will fail due to missing priveleges. Users can not run root progs, unless the permissions have been set to apply such operation.
    – George Vasiliou
    Feb 7 '17 at 14:49










  • it turns out that when i use "sudo nautilus" and launch my sublime_text.desktop then it works...and it does not work normally :( any help on permission issue??
    – Cruelplatypus67
    Feb 7 '17 at 15:08












up vote
1
down vote










up vote
1
down vote









I don't think that this will work:



Exec=./sublime_text


Use full path instead.



Exec=/full/path/to/sublime_text


To make it work with ./sublime_text you need to have .desktop file and executable file in the same current working directory (.)



If yet does not open, then check for permission issues.
When you call the .desktop file with a double click or from your DE apps menu then the .desktop file is executed as user.

If the folder you have your executable file is a root folder, execution will fail due to missing priveleges.

Users can not run root progs, unless the permissions have been set to apply such operation (allow execution by others).






share|improve this answer














I don't think that this will work:



Exec=./sublime_text


Use full path instead.



Exec=/full/path/to/sublime_text


To make it work with ./sublime_text you need to have .desktop file and executable file in the same current working directory (.)



If yet does not open, then check for permission issues.
When you call the .desktop file with a double click or from your DE apps menu then the .desktop file is executed as user.

If the folder you have your executable file is a root folder, execution will fail due to missing priveleges.

Users can not run root progs, unless the permissions have been set to apply such operation (allow execution by others).







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 7 '17 at 15:15

























answered Feb 7 '17 at 14:39









George Vasiliou

5,56031028




5,56031028











  • i specifically mentioned that i dont want to use full paths & without ./ it does not work either
    – Cruelplatypus67
    Feb 7 '17 at 14:42











  • @surajmandalcell What's wrong with full paths? In order to make ./ to work the .desktop file and the executable file it seems that must be in the same directory, but yet is not 100% sure that will work
    – George Vasiliou
    Feb 7 '17 at 14:45










  • it didnt :( sorry but i dont know what am i doing wrong
    – Cruelplatypus67
    Feb 7 '17 at 14:46










  • @surajmandalcell Check for permissions. If you call the .desktop file from a double click on your desktop or from your DE apps menu then the .desktop file is called as user. if the folder you have your executable is a root folder, will fail due to missing priveleges. Users can not run root progs, unless the permissions have been set to apply such operation.
    – George Vasiliou
    Feb 7 '17 at 14:49










  • it turns out that when i use "sudo nautilus" and launch my sublime_text.desktop then it works...and it does not work normally :( any help on permission issue??
    – Cruelplatypus67
    Feb 7 '17 at 15:08
















  • i specifically mentioned that i dont want to use full paths & without ./ it does not work either
    – Cruelplatypus67
    Feb 7 '17 at 14:42











  • @surajmandalcell What's wrong with full paths? In order to make ./ to work the .desktop file and the executable file it seems that must be in the same directory, but yet is not 100% sure that will work
    – George Vasiliou
    Feb 7 '17 at 14:45










  • it didnt :( sorry but i dont know what am i doing wrong
    – Cruelplatypus67
    Feb 7 '17 at 14:46










  • @surajmandalcell Check for permissions. If you call the .desktop file from a double click on your desktop or from your DE apps menu then the .desktop file is called as user. if the folder you have your executable is a root folder, will fail due to missing priveleges. Users can not run root progs, unless the permissions have been set to apply such operation.
    – George Vasiliou
    Feb 7 '17 at 14:49










  • it turns out that when i use "sudo nautilus" and launch my sublime_text.desktop then it works...and it does not work normally :( any help on permission issue??
    – Cruelplatypus67
    Feb 7 '17 at 15:08















i specifically mentioned that i dont want to use full paths & without ./ it does not work either
– Cruelplatypus67
Feb 7 '17 at 14:42





i specifically mentioned that i dont want to use full paths & without ./ it does not work either
– Cruelplatypus67
Feb 7 '17 at 14:42













@surajmandalcell What's wrong with full paths? In order to make ./ to work the .desktop file and the executable file it seems that must be in the same directory, but yet is not 100% sure that will work
– George Vasiliou
Feb 7 '17 at 14:45




@surajmandalcell What's wrong with full paths? In order to make ./ to work the .desktop file and the executable file it seems that must be in the same directory, but yet is not 100% sure that will work
– George Vasiliou
Feb 7 '17 at 14:45












it didnt :( sorry but i dont know what am i doing wrong
– Cruelplatypus67
Feb 7 '17 at 14:46




it didnt :( sorry but i dont know what am i doing wrong
– Cruelplatypus67
Feb 7 '17 at 14:46












@surajmandalcell Check for permissions. If you call the .desktop file from a double click on your desktop or from your DE apps menu then the .desktop file is called as user. if the folder you have your executable is a root folder, will fail due to missing priveleges. Users can not run root progs, unless the permissions have been set to apply such operation.
– George Vasiliou
Feb 7 '17 at 14:49




@surajmandalcell Check for permissions. If you call the .desktop file from a double click on your desktop or from your DE apps menu then the .desktop file is called as user. if the folder you have your executable is a root folder, will fail due to missing priveleges. Users can not run root progs, unless the permissions have been set to apply such operation.
– George Vasiliou
Feb 7 '17 at 14:49












it turns out that when i use "sudo nautilus" and launch my sublime_text.desktop then it works...and it does not work normally :( any help on permission issue??
– Cruelplatypus67
Feb 7 '17 at 15:08




it turns out that when i use "sudo nautilus" and launch my sublime_text.desktop then it works...and it does not work normally :( any help on permission issue??
– Cruelplatypus67
Feb 7 '17 at 15:08

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f343180%2fcreating-a-launcher-icon-for-sublime-text-3-with-the-exec-sublime-text-instead-o%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 to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay