Merge pull request #13414 from passeride/master

Added context menu for cinnamon desktop enviroment (Linux)
This commit is contained in:
Sadick 2021-09-03 12:49:17 +03:00 committed by GitHub
commit 41234da15e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -168,6 +168,11 @@ elif [ $OS == 'Linux' ]; then
;;
esac
#Will allow user to get context menu on cinnamon desktop enviroment
if [[ "$(expr substr $(printenv | grep "DESKTOP_SESSION=") 17 8)" == "cinnamon" ]]; then
cp "resources/linux/desktopenviroment/cinnamon/atom.nemo_action" "/usr/share/nemo/actions/atom.nemo_action"
fi
: ${TMPDIR:=/tmp}
[ -x "$ATOM_PATH" ] || ATOM_PATH="$TMPDIR/atom-build/Atom/atom"

View File

@ -0,0 +1,9 @@
[Nemo Action]
Active=true
Name=Open in Atom
Comment=Open in Atom
#%U is the current selected file, this will also work on current directory
Exec=atom -n %U
Icon-Name=atom
Selection=any
Extensions=any