Add .desktop file for notepad++

This commit is contained in:
Gašper Fele-Žorž 2025-10-02 23:30:18 +02:00
parent 0eaf4a5d40
commit 47171e65c6
3 changed files with 30 additions and 1 deletions

View file

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Notepad++
GenericName=Notepad++
Comment=A simple IDE
Exec=wine "/opt/notepad++/notepad++.exe"
Icon=notepad++
Terminal=false
Type=Application
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Categories=Education;Development;ComputerScience;
StartupNotify=true

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View file

@ -19,6 +19,24 @@
- name: Download and unpack Notepad++
unarchive:
src: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.5.7/npp.8.5.7.portable.x64.zip
src: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.8.5/npp.8.8.5.portable.x64.zip
dest: /opt/notepad++
remote_src: yes
- name: Install icon
block:
- file:
path: /usr/local/share/icons
state: directory
- copy:
src: notepad++.png
dest: /usr/local/share/icons/notepad++.png
- name: Create .desktop file
block:
- file:
path: /usr/local/share/applications
state: directory
- copy:
dest: /usr/local/share/applications/notepad++.desktop
src: notepad++.desktop