Correct way to create a Desktop Entry file of Directory type?
What elements should I define in a Desktop Entry file of Directory type for xfce? Although it can be created using thunar file manager by right clicking on the folder, so what I want to know is that if its possible to create one manually.
I wish XFCE was well documented as other DEs
xfce
add a comment |
What elements should I define in a Desktop Entry file of Directory type for xfce? Although it can be created using thunar file manager by right clicking on the folder, so what I want to know is that if its possible to create one manually.
I wish XFCE was well documented as other DEs
xfce
add a comment |
What elements should I define in a Desktop Entry file of Directory type for xfce? Although it can be created using thunar file manager by right clicking on the folder, so what I want to know is that if its possible to create one manually.
I wish XFCE was well documented as other DEs
xfce
What elements should I define in a Desktop Entry file of Directory type for xfce? Although it can be created using thunar file manager by right clicking on the folder, so what I want to know is that if its possible to create one manually.
I wish XFCE was well documented as other DEs
xfce
xfce
edited Sep 28 '12 at 2:14
Aman Sharma
asked Sep 27 '12 at 10:23
Aman SharmaAman Sharma
128211
128211
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
You will find detailed information on desktop entry files here.
I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory
, and not .desktop
.
1
Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.
– Aman Sharma
Sep 27 '12 at 12:32
add a comment |
Create a symlink for example:
ln -s /home/pi/resources /home/pi/Desktop/Course Resources
The first mart is the folder you want to link and the second part is the link on the desktop.
And what does the third argument (Resources
) mean?
– mook765
Sep 19 '18 at 19:14
add a comment |
If I understand this correctly, Type=Directory
does not create a launcher, but provides metadata for a menu.
Although I couldn't find any official documentation how to create a directory launcher, this worked for me:
[Desktop Entry]
Name=foobar
Exec=xdg-open /path/to/foobar
Icon=folder
Terminal=false
Type=Application
add a comment |
This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.
[Desktop Entry]
Name=Videos
Icon=folder-video.png
Type=Link
URL=/mnt/HDD/Videos/
#URL=sftp://192.168.1.7/mnt/HDD/Videos/
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%2f193577%2fcorrect-way-to-create-a-desktop-entry-file-of-directory-type%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
You will find detailed information on desktop entry files here.
I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory
, and not .desktop
.
1
Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.
– Aman Sharma
Sep 27 '12 at 12:32
add a comment |
You will find detailed information on desktop entry files here.
I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory
, and not .desktop
.
1
Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.
– Aman Sharma
Sep 27 '12 at 12:32
add a comment |
You will find detailed information on desktop entry files here.
I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory
, and not .desktop
.
You will find detailed information on desktop entry files here.
I'm unable to find XFCE's desktop entry specifications, but in Gnome desktop entry specifications, the desktop entry for a directory must be ending with .directory
, and not .desktop
.
answered Sep 27 '12 at 10:50
JanuaryJanuary
25.6k116788
25.6k116788
1
Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.
– Aman Sharma
Sep 27 '12 at 12:32
add a comment |
1
Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.
– Aman Sharma
Sep 27 '12 at 12:32
1
1
Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.
– Aman Sharma
Sep 27 '12 at 12:32
Actually that link is the origin of my question. I tried setting type to Directory but xfce perceives it as an invalid .desktop file and it does not recognize .directory.
– Aman Sharma
Sep 27 '12 at 12:32
add a comment |
Create a symlink for example:
ln -s /home/pi/resources /home/pi/Desktop/Course Resources
The first mart is the folder you want to link and the second part is the link on the desktop.
And what does the third argument (Resources
) mean?
– mook765
Sep 19 '18 at 19:14
add a comment |
Create a symlink for example:
ln -s /home/pi/resources /home/pi/Desktop/Course Resources
The first mart is the folder you want to link and the second part is the link on the desktop.
And what does the third argument (Resources
) mean?
– mook765
Sep 19 '18 at 19:14
add a comment |
Create a symlink for example:
ln -s /home/pi/resources /home/pi/Desktop/Course Resources
The first mart is the folder you want to link and the second part is the link on the desktop.
Create a symlink for example:
ln -s /home/pi/resources /home/pi/Desktop/Course Resources
The first mart is the folder you want to link and the second part is the link on the desktop.
edited Oct 17 '14 at 15:20
Luís de Sousa
9,2011752103
9,2011752103
answered Oct 17 '14 at 14:18
DirkDirk
1
1
And what does the third argument (Resources
) mean?
– mook765
Sep 19 '18 at 19:14
add a comment |
And what does the third argument (Resources
) mean?
– mook765
Sep 19 '18 at 19:14
And what does the third argument (
Resources
) mean?– mook765
Sep 19 '18 at 19:14
And what does the third argument (
Resources
) mean?– mook765
Sep 19 '18 at 19:14
add a comment |
If I understand this correctly, Type=Directory
does not create a launcher, but provides metadata for a menu.
Although I couldn't find any official documentation how to create a directory launcher, this worked for me:
[Desktop Entry]
Name=foobar
Exec=xdg-open /path/to/foobar
Icon=folder
Terminal=false
Type=Application
add a comment |
If I understand this correctly, Type=Directory
does not create a launcher, but provides metadata for a menu.
Although I couldn't find any official documentation how to create a directory launcher, this worked for me:
[Desktop Entry]
Name=foobar
Exec=xdg-open /path/to/foobar
Icon=folder
Terminal=false
Type=Application
add a comment |
If I understand this correctly, Type=Directory
does not create a launcher, but provides metadata for a menu.
Although I couldn't find any official documentation how to create a directory launcher, this worked for me:
[Desktop Entry]
Name=foobar
Exec=xdg-open /path/to/foobar
Icon=folder
Terminal=false
Type=Application
If I understand this correctly, Type=Directory
does not create a launcher, but provides metadata for a menu.
Although I couldn't find any official documentation how to create a directory launcher, this worked for me:
[Desktop Entry]
Name=foobar
Exec=xdg-open /path/to/foobar
Icon=folder
Terminal=false
Type=Application
answered Jun 12 '17 at 12:04
T ST S
1213
1213
add a comment |
add a comment |
This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.
[Desktop Entry]
Name=Videos
Icon=folder-video.png
Type=Link
URL=/mnt/HDD/Videos/
#URL=sftp://192.168.1.7/mnt/HDD/Videos/
add a comment |
This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.
[Desktop Entry]
Name=Videos
Icon=folder-video.png
Type=Link
URL=/mnt/HDD/Videos/
#URL=sftp://192.168.1.7/mnt/HDD/Videos/
add a comment |
This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.
[Desktop Entry]
Name=Videos
Icon=folder-video.png
Type=Link
URL=/mnt/HDD/Videos/
#URL=sftp://192.168.1.7/mnt/HDD/Videos/
This is what I found. This will look and behave in nautilus/nemo like a normal folder instead of a symlink. Being a link it can have any name or image while being de facto a GUI folder. It can also link to a distant folder. And contrary to some solutions here, it will not open a new window if opened from nemo.
[Desktop Entry]
Name=Videos
Icon=folder-video.png
Type=Link
URL=/mnt/HDD/Videos/
#URL=sftp://192.168.1.7/mnt/HDD/Videos/
answered 6 hours ago
sinekonatasinekonata
364620
364620
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%2f193577%2fcorrect-way-to-create-a-desktop-entry-file-of-directory-type%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