DEV Community

loading...

Creating a Template on KDE Plasma

ksckaan1 profile image Kaan Kuscu ・1 min read

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 😄

Discussion (0)

Forem Open with the Forem app