DEV Community

Kaan Kuscu
Kaan Kuscu

Posted on

Creating a Template on KDE Plasma

In too many forums, I saw KDE Plasma users don't know how to create a template file for right-click context menu.

In post, I will show you, how to create template file for KDE Plasma.

Maybe you saw template folder in your home directory. But it's invalid to plasma. Ofcourse this is not mean you can't create template file.

You can create template file in this way.

Step.1

Navigate to /usr/share/templates/ and create .source directory into this directory.

Step.2

Create a main.go file. It can be empty.

Step.3

Go back to /usr/share/templates/ and create gofile.desktop.

Step.4

Write this code (on the below).

[Desktop Entry]
Name=Go Main File...
Comment=New Go Main File:
Type=Link
URL=.source/main.go
Icon=text-x-go

Enter fullscreen mode Exit fullscreen mode

Now you can use this template 😄

Latest comments (3)

Collapse
 
cbiweb profile image
CBIweb

Using KDE Plasma on MX Linux, there is no templates folder in /usr/share/. Please advise.

Collapse
 
ksckaan1 profile image
Kaan Kuscu • Edited

Have you tried creating this folder in the specified directory? You can create templates folder under /usr/share yourself ,if doesn't exists.

Collapse
 
cbiweb profile image
CBIweb

That worked. I'm new to Linux and wasn't aware I could do that. Thanks!