96
submitted 5 days ago* (last edited 5 days ago) by trulyrandomguy@lemmy.world to c/linux@lemmy.ml

I want to add an option under Create New to create a file of particular type. For example I use Rnote to create notes,. They have .rnote extension.

Now I create a empty file (image, 3rd option from above) with extension as .rnote , but that file when opened in the application can't be written to, because it is not a proper .rnote file, it is empty file with that extension.

How do I quickly create a proper file for rnote or any application for example libreoffice?

I am on fedora 43, kde plasma.

you are viewing a single comment's thread
view the rest of the comments
[-] MentalEdge@sopuli.xyz 2 points 3 days ago* (last edited 3 days ago)

Looks like in plasma 5 you need to mess with .desktop files placed in ~/.local/share/templates/

[-] utopiah@lemmy.ml 2 points 3 days ago* (last edited 3 days ago)

Neat! Thanks I

  • created ~/.local/share/templates/
  • relied on examples from /usr/share/templates for .desktop files
  • linked back to the actual template file in ~/Templates and finally now getting :

fixed icon

this post was submitted on 02 Nov 2025
96 points (100.0% liked)

Linux

59418 readers
477 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS