Skip to content

Commit

Permalink
Merge pull request atom#13414 from passeride/master
Browse files Browse the repository at this point in the history
Added context menu for cinnamon desktop enviroment (Linux)
  • Loading branch information
sadick254 authored Sep 3, 2021
2 parents e74767c + 6f6768b commit 41234da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions resources/linux/desktopenviroment/cinnamon/atom.nemo_action
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 41234da

Please sign in to comment.