Creating a launcher icon for sublime text 3 with the Exec=sublime_text instead of long path with shortcut icon retained in launcher
Clash 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,
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
add a comment |
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,
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
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
add a comment |
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,
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
I created a shortcut for sublime text 3 (sublime_text.desktop)[The file with the good looking icon] and this happened,
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
fedora desktop-shortcuts sublime-text
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
add a comment |
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
add a comment |
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).
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
|
show 7 more comments
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).
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
|
show 7 more comments
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).
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
|
show 7 more comments
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).
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).
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
|
show 7 more comments
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
|
show 7 more comments
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%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
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
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