unixwork / xnedit

A fast and classic X11 text editor, based on NEdit, with full unicode support and antialiased text rendering.
Other
82 stars 12 forks source link

.desktop file does not work #88

Closed JamesOlvertone closed 1 year ago

JamesOlvertone commented 2 years ago

The desktopfile with xnc entry does not start any xnedit window. OS: Xubuntu 21.10

`[Desktop Entry] Version=1.0 Name=XNEdit GenericName=XNEdit Comment=Nirvana Text Editor Exec=/mypath/xnc -tabbed %F TryExec=/mypath/bin/xnc Categories=Application;Utility;TextEditor; Icon=xnedit Terminal=false MimeType=text/plain; Type=Application Keywords=Text;Editor;Plaintext;Write; Actions=new-window;new-document;

[Desktop Action new-window] Name=New Window Name[en_GB]=New Window Exec=/mypath/bin/xnc -untabbed

[Desktop Action new-document] Name=New Document Name[en_GB]=New Document Exec=/mypath/bin/xnc -tabbed ` When I change all the "xnc" to "xnedit" it works. /mypath/bin is added to $PATH and exported. When I open a shell and enter xnedit xnedit starts. When I enter xnc, xnedit starts.

unixwork commented 2 years ago

Is the path correct in this line?

Exec=/mypath/xnc -tabbed %F

JamesOlvertone commented 2 years ago

Yes. When I enter /mypath/xnc -tabbed foofilename.txt in a terminal xnedit is started.

JamesOlvertone commented 2 years ago

It semiworks with this (found this in eclipse.desktop):

Put this

!/usr/bin/env xdg-open

on the first line in the .desktop and make xnedit.desktop executable xnedit starts up as expected with the xnc line when you execute the xnedit.desktop from the terminal. Starting it from the whisker-menue/application-menue does not work, xnedit entry is visible in the menue.