mirror of
https://github.com/allankoechke/InstallCursorEditorLinux.git
synced 2026-12-03 09:07:06 +00:00
Merge pull request #5 from Elagoht/main
feat: adapt desktop entry to make it listable on open with context menus
This commit is contained in:
@@ -56,15 +56,17 @@ function setup_cursor() {
|
||||
sudo tee "$DESKTOP_FILE" > /dev/null <<EOF
|
||||
[Desktop Entry]
|
||||
Name=Cursor
|
||||
Exec=$EXE_PATH
|
||||
GenericName=Text Editor
|
||||
Exec=$EXE_PATH %F
|
||||
Type=Application
|
||||
Icon=/opt/cursor/assets/cursor.png
|
||||
StartupWMClass=Cursor
|
||||
X-AppImage-Version=240829epqamqp7h
|
||||
StartupNotify=false
|
||||
Comment=Cursor is an AI-first coding environment.
|
||||
MimeType=x-scheme-handler/cursor;
|
||||
Categories=Development;
|
||||
|
||||
MimeType=application/x-cursor-workspace;
|
||||
Categories=TextEditor;Development;IDE;
|
||||
Actions=new-empty-window;
|
||||
Keywords=cursor;vscode;code;
|
||||
EOF
|
||||
if [ $? -eq 0 ]; then
|
||||
echo -e "${GREEN}✅ File $DESKTOP_FILE created successfully.${NC}"
|
||||
|
||||
Reference in New Issue
Block a user