Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Command to refresh the cinnamon menu from terminal #38

@charlespax

Description

@charlespax

I'm not sure if the right place for this feature request, but here it goes. I would like a method for refreshing the cinnamon menu from the command line.

In a script I am writing, the Eclipse IDE is installed and the script creates a menu entry. Initially, the menu entry cannot be found. However, the menu entry works great if I log out and log back in or if I restart cinnamon entirely.

If such an option or a good workaround exists I would love to know about it.

Here is the part that creates the menu entry.

if [[ -d ~/.local/share/applications ]]; then
	echo "shortfut dir exists."
else
	mkdir -p ~/.local/share/applications
fi

ECLIPSE=/eclipse/eclipse
ICON=/eclipse/icon.xpm
FULL_PATH=$HOME$ECLIPSE
echo " [Desktop Entry]
Encoding=UTF-8
Name=Eclipse IDE
Comment=Eclipse IDE
Exec=$FULL_PATH
Icon=$HOME$ICON
Terminal=false
Type=Application
Categories=Development;Programming
StartupNotify=false" \
>> ~/.local/share/applications/eclipse.desktop
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions