How do you make Execute do anything in Geany?

雨燕双飞 提交于 2019-12-07 07:56:28

Solution

In Edit -> Preferences -> Tools, change the Terminal from

x-terminal-emulator -e "/bin/sh %c"

to

x-terminal-emulator -e /bin/sh %c

Explanation

When you press Execute, Geany executes the terminal specified in Edit -> Preferences -> Tools, replacing %c with the Execute command set in Build -> Set Build Commands.

In Ubuntu, the default terminal emulator supports -e being passed a single parameter in quotes which contains an entire command line, and Execute works as expected. However, the default terminal emulator in Kubuntu is Konsole, which does not support this; it only supports using the rest of arguments after -e as a command line. When KDE attempted to implement it, this bug was introduced so they reverted the change.

Update

Konsole will support the terminal emulator parameters that Geany uses by default from KDE 4.14.2, so once that's out, this workaround will no longer be needed.

This solution also works in Lubuntu 17.04.

In Geany Edit -> Preferences -> Tools, change the Terminal from x-terminal-emulator -e "/bin/sh %c" to x-terminal-emulator -e /bin/sh %c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!