How can I edit the Dash entry for idle3 so it launches _without_ the -n option?

Asked by Brian Mankin

When I launch idle3 (a python interactive shell) from the Dash menu, it opens without the 'Shell' menu and therefore does not display the 'Restart Shell' menu item.

From +question 72961 I see that this is due to the inclusion of the '-n' option in the Dash command.
https://answers.launchpad.net/ubuntu/+question/72961

If I open a terminal and type the command 'idle3', Idle launches _with_ the 'Shell' menu. In the same terminal, if I issue the command 'idle3 -n', Idle starts _without_ the 'Shell' menu.

I would like to edit the Dash entry to remove the '-n' flag from the Dash/Unity application entry for idle3. How do I do this?

Thanks in advance.

Brian Mankin.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu unity Edit question
Assignee:
No assignee Edit question
Solved by:
Brian Mankin
Solved:
Last query:
Last reply:
Revision history for this message
Brian Mankin (brian-mankin) said :
#1

In /usr/share/applications - I found a file : idle3.desktop

The text of this file read as follows :

- - - - - start of /usr/share/applications/idle3.desktop - - - - -
    [Desktop Entry]
    Name=IDLE 3
    Comment=Integrated DeveLopment Environment for Python3
    Exec=/usr/bin/idle3 -n
    Icon=/usr/share/pixmaps/idle3.xpm
    Terminal=false
    Type=Application
    Categories=Application;Development;
    StartupNotify=true

- - - - - end of /usr/share/applications/idle3.desktop - - - - -

I edited this file to remove the -n option on the fourth line

    Exec=/usr/bin/idle3 -n
        >>> change to >>>
    Exec=/usr/bin/idle3

After a restart, when I launch idle3 from the Unity / Dash menu, I have access to the 'Restart Shell' menu item.

Thanks to anyone who looked at this. I am no longer affected by this problem.