This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Adding a "create new .lyx" path / shortcut / service menu in

Tags: None
(comma "," separated)
usserr
Registered Member
Posts
4
Karma
0
Hello,

How can we add a "create new .lyx document" shortcut in Dolphin on Kde Plasma Version 5.6.4?

I might be willing to ask the same question for other apps in the future (probably I will need Texmaker as well - but is there a way to do it for any possible app?

It's kind of sad that some apps just don't offer the possibility to do it during the installation, but I guess that's because Zypper cannot handle all these little tweaks with a single command and needs to stick to defaults (I'm speaking as a long-time Windows user and a Linux novice here).

As additional info, I'm using OpenSuSE 15.0.
User avatar
Rog131
Registered Member
Posts
828
Karma
10
usserr wrote:Hello,

How can we add a "create new .lyx document" shortcut in Dolphin on Kde Plasma Version 5.6.4?



The 'Create New' menu

Image

information is read from the .desktop files from the 'templates' directories:

/usr/share/templates/
$HOME/.local/share/templates/

and the new option, https://cgit.kde.org/kio.git/commit/?id ... 60966d20bb :

[KIO] Add support for XDG_TEMPLATES_DIR in KNewFileMenu
Summary:
This patch adds the support for templates in the XDG_TEMPLATES_DIR location...
As is all templates have to be a .desktop file...


As default the ~/.config/user-dirs.dirs has:
XDG_TEMPLATES_DIR="$HOME/Templates"


Examples:

Create New: viewtopic.php?f=224&t=142366#p382404
“Create New” menu: https://askubuntu.com/questions/1086015 ... 94#1086194
Adding my own templates to 'Create New' menu: viewtopic.php?f=224&t=119342
Customizing "Create new" menu: viewtopic.php?f=17&t=36907


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar