Linux Mint - add file type to “new file” context menu category

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











up vote
0
down vote

favorite












I am trying to add a new file extension to cinnamon's new file menu



  1. right click


  2. create new document


  3. I would like to add entries in this list


I remember that I have done this before based on a tutorial, but it seems to have disappeared from the web since.



I can remember that the source is a directory, but can't recall the path from which it fetches the file types and default contents.



Where can I find this directory?



  • OS: Linux Mint 18.3

  • desktop: cinnamon

  • file manager: nemo

Update/Research: According to this article's 7th point, the directory I'm looking for is ~/Templates, which doesn't exist on my system. Since my context menu already has custom file templates I suspect it has been moved to another location between versions. which exists but is a bit tricky, see answer.










share|improve this question























  • if using nemo you should find some hint in: ~/.local/share/nemo/actions and /usr/share/nemo/actions/ but I really don't how it works. Welcom on SE Unix&Linux
    – Kiwy
    Sep 19 at 13:14










  • @Kiwy Yes, I indeed use nemo, and I'll add that to the question (it seems relevant after a bit of reading on different file managers) despite having an answer since.
    – sisisisi
    Sep 19 at 13:24














up vote
0
down vote

favorite












I am trying to add a new file extension to cinnamon's new file menu



  1. right click


  2. create new document


  3. I would like to add entries in this list


I remember that I have done this before based on a tutorial, but it seems to have disappeared from the web since.



I can remember that the source is a directory, but can't recall the path from which it fetches the file types and default contents.



Where can I find this directory?



  • OS: Linux Mint 18.3

  • desktop: cinnamon

  • file manager: nemo

Update/Research: According to this article's 7th point, the directory I'm looking for is ~/Templates, which doesn't exist on my system. Since my context menu already has custom file templates I suspect it has been moved to another location between versions. which exists but is a bit tricky, see answer.










share|improve this question























  • if using nemo you should find some hint in: ~/.local/share/nemo/actions and /usr/share/nemo/actions/ but I really don't how it works. Welcom on SE Unix&Linux
    – Kiwy
    Sep 19 at 13:14










  • @Kiwy Yes, I indeed use nemo, and I'll add that to the question (it seems relevant after a bit of reading on different file managers) despite having an answer since.
    – sisisisi
    Sep 19 at 13:24












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to add a new file extension to cinnamon's new file menu



  1. right click


  2. create new document


  3. I would like to add entries in this list


I remember that I have done this before based on a tutorial, but it seems to have disappeared from the web since.



I can remember that the source is a directory, but can't recall the path from which it fetches the file types and default contents.



Where can I find this directory?



  • OS: Linux Mint 18.3

  • desktop: cinnamon

  • file manager: nemo

Update/Research: According to this article's 7th point, the directory I'm looking for is ~/Templates, which doesn't exist on my system. Since my context menu already has custom file templates I suspect it has been moved to another location between versions. which exists but is a bit tricky, see answer.










share|improve this question















I am trying to add a new file extension to cinnamon's new file menu



  1. right click


  2. create new document


  3. I would like to add entries in this list


I remember that I have done this before based on a tutorial, but it seems to have disappeared from the web since.



I can remember that the source is a directory, but can't recall the path from which it fetches the file types and default contents.



Where can I find this directory?



  • OS: Linux Mint 18.3

  • desktop: cinnamon

  • file manager: nemo

Update/Research: According to this article's 7th point, the directory I'm looking for is ~/Templates, which doesn't exist on my system. Since my context menu already has custom file templates I suspect it has been moved to another location between versions. which exists but is a bit tricky, see answer.







files linux-mint cinnamon menu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 19 at 13:27

























asked Sep 19 at 10:42









sisisisi

113




113











  • if using nemo you should find some hint in: ~/.local/share/nemo/actions and /usr/share/nemo/actions/ but I really don't how it works. Welcom on SE Unix&Linux
    – Kiwy
    Sep 19 at 13:14










  • @Kiwy Yes, I indeed use nemo, and I'll add that to the question (it seems relevant after a bit of reading on different file managers) despite having an answer since.
    – sisisisi
    Sep 19 at 13:24
















  • if using nemo you should find some hint in: ~/.local/share/nemo/actions and /usr/share/nemo/actions/ but I really don't how it works. Welcom on SE Unix&Linux
    – Kiwy
    Sep 19 at 13:14










  • @Kiwy Yes, I indeed use nemo, and I'll add that to the question (it seems relevant after a bit of reading on different file managers) despite having an answer since.
    – sisisisi
    Sep 19 at 13:24















if using nemo you should find some hint in: ~/.local/share/nemo/actions and /usr/share/nemo/actions/ but I really don't how it works. Welcom on SE Unix&Linux
– Kiwy
Sep 19 at 13:14




if using nemo you should find some hint in: ~/.local/share/nemo/actions and /usr/share/nemo/actions/ but I really don't how it works. Welcom on SE Unix&Linux
– Kiwy
Sep 19 at 13:14












@Kiwy Yes, I indeed use nemo, and I'll add that to the question (it seems relevant after a bit of reading on different file managers) despite having an answer since.
– sisisisi
Sep 19 at 13:24




@Kiwy Yes, I indeed use nemo, and I'll add that to the question (it seems relevant after a bit of reading on different file managers) despite having an answer since.
– sisisisi
Sep 19 at 13:24










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Ok, after a bit more research I found the answer to my problem.



  • the template directory is indeed at ~/Templatesbut its name is translated to the language of the desktop environment

  • the translation is not "cosmetic", Nemo and the terminal can both access ~/Sablonok ([hu] locale version of "templates"), and they both fail to locate ~/Templates

  • viewed in Nemo, the directory has an icon with a paper in a standing position, the letter 'a' written on it, a visible thin solid grey margin around the letter, and a triangular ruler in the bottom left corner. This is in Nemo 3.6.5, Linux Mint 18.3, Cinnamon desktop environment, every possible theme setting on default. Anyone else's icon might differ with different software, software version, or custom themes.

  • according to this forum post, specifically altair4's answer, it is possible that the directory doesn't exist and you need to manually create it. This information might be outdated as it's from 2009.

I don't have sources on names for any other locale besides [en] and [hu] as I have found the directory accidentally, not through systematic searching on the web.






share|improve this answer






















  • you might want to explain what you've done, you could find this question in a year or two and find nice that you put a good explanation on how to ;-) Glad you find your solution.
    – Kiwy
    Sep 19 at 13:26











  • @Kiwy Ok, I have to admit "research" is a strong word for what I have done, I have browsed my system's directory structure until I have accidentally stumbled upon a directory which's name translates to "Templates", looked in it and found the custom templates my context menu already had. I think the answer is clear enough that someone finding it will be able to locate this directory, but I'll try to add as many details as I can.
    – sisisisi
    Sep 20 at 20:48










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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
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%2f469981%2flinux-mint-add-file-type-to-new-file-context-menu-category%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Ok, after a bit more research I found the answer to my problem.



  • the template directory is indeed at ~/Templatesbut its name is translated to the language of the desktop environment

  • the translation is not "cosmetic", Nemo and the terminal can both access ~/Sablonok ([hu] locale version of "templates"), and they both fail to locate ~/Templates

  • viewed in Nemo, the directory has an icon with a paper in a standing position, the letter 'a' written on it, a visible thin solid grey margin around the letter, and a triangular ruler in the bottom left corner. This is in Nemo 3.6.5, Linux Mint 18.3, Cinnamon desktop environment, every possible theme setting on default. Anyone else's icon might differ with different software, software version, or custom themes.

  • according to this forum post, specifically altair4's answer, it is possible that the directory doesn't exist and you need to manually create it. This information might be outdated as it's from 2009.

I don't have sources on names for any other locale besides [en] and [hu] as I have found the directory accidentally, not through systematic searching on the web.






share|improve this answer






















  • you might want to explain what you've done, you could find this question in a year or two and find nice that you put a good explanation on how to ;-) Glad you find your solution.
    – Kiwy
    Sep 19 at 13:26











  • @Kiwy Ok, I have to admit "research" is a strong word for what I have done, I have browsed my system's directory structure until I have accidentally stumbled upon a directory which's name translates to "Templates", looked in it and found the custom templates my context menu already had. I think the answer is clear enough that someone finding it will be able to locate this directory, but I'll try to add as many details as I can.
    – sisisisi
    Sep 20 at 20:48














up vote
1
down vote













Ok, after a bit more research I found the answer to my problem.



  • the template directory is indeed at ~/Templatesbut its name is translated to the language of the desktop environment

  • the translation is not "cosmetic", Nemo and the terminal can both access ~/Sablonok ([hu] locale version of "templates"), and they both fail to locate ~/Templates

  • viewed in Nemo, the directory has an icon with a paper in a standing position, the letter 'a' written on it, a visible thin solid grey margin around the letter, and a triangular ruler in the bottom left corner. This is in Nemo 3.6.5, Linux Mint 18.3, Cinnamon desktop environment, every possible theme setting on default. Anyone else's icon might differ with different software, software version, or custom themes.

  • according to this forum post, specifically altair4's answer, it is possible that the directory doesn't exist and you need to manually create it. This information might be outdated as it's from 2009.

I don't have sources on names for any other locale besides [en] and [hu] as I have found the directory accidentally, not through systematic searching on the web.






share|improve this answer






















  • you might want to explain what you've done, you could find this question in a year or two and find nice that you put a good explanation on how to ;-) Glad you find your solution.
    – Kiwy
    Sep 19 at 13:26











  • @Kiwy Ok, I have to admit "research" is a strong word for what I have done, I have browsed my system's directory structure until I have accidentally stumbled upon a directory which's name translates to "Templates", looked in it and found the custom templates my context menu already had. I think the answer is clear enough that someone finding it will be able to locate this directory, but I'll try to add as many details as I can.
    – sisisisi
    Sep 20 at 20:48












up vote
1
down vote










up vote
1
down vote









Ok, after a bit more research I found the answer to my problem.



  • the template directory is indeed at ~/Templatesbut its name is translated to the language of the desktop environment

  • the translation is not "cosmetic", Nemo and the terminal can both access ~/Sablonok ([hu] locale version of "templates"), and they both fail to locate ~/Templates

  • viewed in Nemo, the directory has an icon with a paper in a standing position, the letter 'a' written on it, a visible thin solid grey margin around the letter, and a triangular ruler in the bottom left corner. This is in Nemo 3.6.5, Linux Mint 18.3, Cinnamon desktop environment, every possible theme setting on default. Anyone else's icon might differ with different software, software version, or custom themes.

  • according to this forum post, specifically altair4's answer, it is possible that the directory doesn't exist and you need to manually create it. This information might be outdated as it's from 2009.

I don't have sources on names for any other locale besides [en] and [hu] as I have found the directory accidentally, not through systematic searching on the web.






share|improve this answer














Ok, after a bit more research I found the answer to my problem.



  • the template directory is indeed at ~/Templatesbut its name is translated to the language of the desktop environment

  • the translation is not "cosmetic", Nemo and the terminal can both access ~/Sablonok ([hu] locale version of "templates"), and they both fail to locate ~/Templates

  • viewed in Nemo, the directory has an icon with a paper in a standing position, the letter 'a' written on it, a visible thin solid grey margin around the letter, and a triangular ruler in the bottom left corner. This is in Nemo 3.6.5, Linux Mint 18.3, Cinnamon desktop environment, every possible theme setting on default. Anyone else's icon might differ with different software, software version, or custom themes.

  • according to this forum post, specifically altair4's answer, it is possible that the directory doesn't exist and you need to manually create it. This information might be outdated as it's from 2009.

I don't have sources on names for any other locale besides [en] and [hu] as I have found the directory accidentally, not through systematic searching on the web.







share|improve this answer














share|improve this answer



share|improve this answer








edited Sep 20 at 21:03

























answered Sep 19 at 13:18









sisisisi

113




113











  • you might want to explain what you've done, you could find this question in a year or two and find nice that you put a good explanation on how to ;-) Glad you find your solution.
    – Kiwy
    Sep 19 at 13:26











  • @Kiwy Ok, I have to admit "research" is a strong word for what I have done, I have browsed my system's directory structure until I have accidentally stumbled upon a directory which's name translates to "Templates", looked in it and found the custom templates my context menu already had. I think the answer is clear enough that someone finding it will be able to locate this directory, but I'll try to add as many details as I can.
    – sisisisi
    Sep 20 at 20:48
















  • you might want to explain what you've done, you could find this question in a year or two and find nice that you put a good explanation on how to ;-) Glad you find your solution.
    – Kiwy
    Sep 19 at 13:26











  • @Kiwy Ok, I have to admit "research" is a strong word for what I have done, I have browsed my system's directory structure until I have accidentally stumbled upon a directory which's name translates to "Templates", looked in it and found the custom templates my context menu already had. I think the answer is clear enough that someone finding it will be able to locate this directory, but I'll try to add as many details as I can.
    – sisisisi
    Sep 20 at 20:48















you might want to explain what you've done, you could find this question in a year or two and find nice that you put a good explanation on how to ;-) Glad you find your solution.
– Kiwy
Sep 19 at 13:26





you might want to explain what you've done, you could find this question in a year or two and find nice that you put a good explanation on how to ;-) Glad you find your solution.
– Kiwy
Sep 19 at 13:26













@Kiwy Ok, I have to admit "research" is a strong word for what I have done, I have browsed my system's directory structure until I have accidentally stumbled upon a directory which's name translates to "Templates", looked in it and found the custom templates my context menu already had. I think the answer is clear enough that someone finding it will be able to locate this directory, but I'll try to add as many details as I can.
– sisisisi
Sep 20 at 20:48




@Kiwy Ok, I have to admit "research" is a strong word for what I have done, I have browsed my system's directory structure until I have accidentally stumbled upon a directory which's name translates to "Templates", looked in it and found the custom templates my context menu already had. I think the answer is clear enough that someone finding it will be able to locate this directory, but I'll try to add as many details as I can.
– sisisisi
Sep 20 at 20:48

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469981%2flinux-mint-add-file-type-to-new-file-context-menu-category%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?