Skip to content

Instantly share code, notes, and snippets.

@pierre-haessig
Created October 3, 2013 17:30
Show Gist options
  • Save pierre-haessig/6813708 to your computer and use it in GitHub Desktop.
Save pierre-haessig/6813708 to your computer and use it in GitHub Desktop.
a .desktop file to create an entry in KDE Dolphin's Actions menu to lauch IPython in the current directory. File to be placed in ~/.kde/share/kde4/services/ServiceMenus/
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;
Actions=openIPythonHere;
X-KDE-AuthorizeAction=shell_access
[Desktop Action openIPythonHere]
# TryExec=ipython
Exec=cd %f; ipython qtconsole --pylab
Icon=utilities-terminal
Name=Open IPython Here
Name[fr]=Ouvrir IPython ici
# Ressources:
# Examples in /usr/share/kde4/services/
# https://bbs.archlinux.org/viewtopic.php?id=136722
# http://techbase.kde.org/Development/Tutorials/Creating_Konqueror_Service_Menus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment