how to use Geany (Lubuntu)

Linux specific questions.
Post Reply
ptitjoz
Posts: 32
Joined: Jun 24, 2017 8:10
Location: France, centre
Contact:

how to use Geany (Lubuntu)

Post by ptitjoz »

Hi
I try to test fbc under Linux Lubuntu 17.10 with Geany
When F8 the compile is OK !
F5 the terminal is all black
I exit Geany
ctrl+alt+t (open lxterminal) and ./hello the program run
An idea to set Geany?

Image

Best regards
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: how to use Geany (Lubuntu)

Post by badidea »

These are my 'build' settings:
Image
ptitjoz
Posts: 32
Joined: Jun 24, 2017 8:10
Location: France, centre
Contact:

Re: how to use Geany (Lubuntu)

Post by ptitjoz »

Hello
And thank you for your answer. I have the same settings as you. Unfortunately, this only gives me an empty console (Lxterminal)
I forgot to mention that I work with Lubuntu 64 bits.
Image

Best regards
speedfixer
Posts: 606
Joined: Nov 28, 2012 1:27
Location: CA, USA moving to WA, USA
Contact:

Re: how to use Geany (Lubuntu)

Post by speedfixer »

I also love/use Lubuntu and geany.

In my project(xxx.geany) and/or general config(common.geany) file I use:

Code: Select all

[build-menu]
NF_03_LB=console
NF_03_CM=lxterminal --geometry=130x30 &
NF_03_WD=
NF_02_LB=file manager
NF_02_CM=pcmanfm &
NF_02_WD=

This gives me a file manager or a console in the current open file directory.
(I keep it simple. Any more feels like trickery - any others never seems to be quite right; I'd rather code than fight an ide.)


david
ptitjoz
Posts: 32
Joined: Jun 24, 2017 8:10
Location: France, centre
Contact:

Re: how to use Geany (Lubuntu)

Post by ptitjoz »

Hello David
Thank you for this information but unfortunately does not solve the problem.
It's not blocking, I'm going to use Scite. I managed to set it up for Freebasic. It may be less powerful than Geany, but it works perfectly.
Thanks again
Best regards
sgaba
Posts: 31
Joined: Aug 15, 2005 19:18
Location: Czech Republic

Re: how to use Geany (Lubuntu)

Post by sgaba »

I tried to solve it but I did not get it.
only:
,,Edit->Preferences->Terminal->Run programs i terminal emulator"
works, but it's just an emergency.
Maybe try to replace default terminal emulator from LXterminal to another.

When I come to something I will write.

EDIT:

Code: Select all

sudo update-alternatives --config x-terminal-emulator
and set another then LXterminal.
speedfixer
Posts: 606
Joined: Nov 28, 2012 1:27
Location: CA, USA moving to WA, USA
Contact:

Re: how to use Geany (Lubuntu)

Post by speedfixer »

yeah, I should have noted:

Since I use Lubuntu, lxterminal and pcmanfm are my default terminal and file manager. You obviously need to use what is supplied with your distro.

ALSO, a bug in geany:

one instance of geany, then selecting terminal, MAY cause the build menu to 'block' as though a command has not completed.
That is, on your lower right geany corner, the waiting action flag appears and the build menu is blocked (greyed out.) Close the console and this clears.

I rarely have less than 3 geany sessions open at a time. All sessions will have this block if one has it blocked. Only one will show the waiting action flag. The build menu is greyed out for all sessions. I tried to report this as a bug, but that didn't go so well. Maybe it is a function of my desktop/filemanager in Lubuntu. I tried many different scripts in the build options panel, but none were consistently successful. Trivial.

I avoid this in one of two ways:

1 - After opening geany, open a filemanager instance from the build menu (shift+F8), then open the console/terminal from the filemanager (F4). I do this for simple ad hoc edit sessions. And/or:

2 - I have a script that opens my geany sessions, console sessions, filemanager sessions - place each on the desktop I want, resize and position each, rename on the titlebars, switches to the 'first' session I select. I usually open at least 4 geany projects, 2 consoles per project (library and test/lib validation program), a general 'rebuild all libraries' script console, and a filemanager in the application result directory. Minimum 14 apps in 8 desktops on at least 2 monitors; one workstation has 3 monitors. I have one of these scripts per project, one per library, etc. (Each is about 2k lines, but the base template script needs very few changes per project. I am writing an FB program to do all this a little more automatically.) The key to this is wmctrl. There are other ways. This is my way.

david
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: how to use Geany (Lubuntu)

Post by Landeel »

This works for me:
Image
Post Reply