mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Merge pull request #13414 from passeride/master
Added context menu for cinnamon desktop enviroment (Linux)
This commit is contained in:
commit
41234da15e
5
atom.sh
5
atom.sh
@ -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"
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user