I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Can you not do this from Geany's Terminal tab?
What do you mean by an open script?
Geoff
On 02/09/18 09:54, Andrew Kennedy via Users wrote:
I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
I can find the terminal tab. libvte-dev is installed.
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 6:55:36 AM CDT, Geoff Kaniuk geoff@kaniuk.co.uk wrote:
Can you not do this from Geany's Terminal tab?
What do you mean by an open script?
Geoff
On 02/09/18 09:54, Andrew Kennedy via Users wrote:
I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
I can not find the terminal tab. libvte-dev is installed.
Message window is also checked.
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 6:55:36 AM CDT, Geoff Kaniuk geoff@kaniuk.co.uk wrote:
Can you not do this from Geany's Terminal tab?
What do you mean by an open script?
Geoff
On 02/09/18 09:54, Andrew Kennedy via Users wrote:
I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
There is a useful section in the manual Usage>General>Virtual terminal emulator widget (VTE)
On my Linux Debian system I launch Geany using: ~$ geany --vte-lib /usr/lib/ ... libvte- ...
The location of libvte has to be exact.
Geoff
33 Ashbury Close, Cambridge CB1 3RW 01223 710582
On 02/09/18 14:29, Andrew Kennedy via Users wrote:
I can not find the terminal tab. libvte-dev is installed.
Message window is also checked.
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 6:55:36 AM CDT, Geoff Kaniuk <geoff@kaniuk.co.uk> wrote:
Can you not do this from Geany's Terminal tab?
What do you mean by an open script?
Geoff
On 02/09/18 09:54, Andrew Kennedy via Users wrote:
I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
libvte.so shows it to be "link to libvte.so.9.2.2800.2.
geany --vte-lib /usr/lib/libvte.so Segmentation fault (core dumped)
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 8:46:09 AM CDT, Geoff Kaniuk geoff@kaniuk.co.uk wrote:
There is a useful section in the manual Usage>General>Virtual terminal emulator widget (VTE)
On my Linux Debian system I launch Geany using: ~$ geany --vte-lib /usr/lib/ ... libvte- ...
The location of libvte has to be exact.
Geoff
33 Ashbury Close, Cambridge CB1 3RW 01223 710582
On 02/09/18 14:29, Andrew Kennedy via Users wrote:
I can not find the terminal tab. libvte-dev is installed.
Message window is also checked.
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 6:55:36 AM CDT, Geoff Kaniuk geoff@kaniuk.co.uk wrote: Can you not do this from Geany's Terminal tab?
What do you mean by an open script?
Geoff
On 02/09/18 09:54, Andrew Kennedy via Users wrote:
I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
This is beginning to be strange!
I am running geany in Debian 9 with the Mate desktop. I launch geany from the Panel with command:
[geany --vte-lib /usr/lib/x86_64-libvte-2.91.so.0 %F]
However a file search for libvte-2.91.so yielded: /usr/lib/x86_64-linux-gnu/libvte-2.91.so.0 link to shared library /usr/lib/x86_64-linux-gnu/libvte-2.91.so.0.4600.1 shared library
This is consistent with the Debian packages list.
The file in the launcher does not exist!
I also found that I cannot launch geany from the command line using
~$ geany --vte-lib /usr/lib/x86_64-linux-gnu/libvte-2.91.so.0.4600.1 ~$ geany --vte-lib /usr/lib/x86_64-linux-gnu/libvte-2.91.so.0
I get GLib-GObject warnings and critical errors.
But the original command does work on the command line:
~$ geany --vte-lib /usr/lib/x86_64-libvte-2.91.so.0
Puzzled!
Geoff
33 Ashbury Close, Cambridge CB1 3RW 01223 710582
On 02/09/18 15:20, Andrew Kennedy via Users wrote:
libvte.so shows it to be "link to libvte.so.9.2.2800.2.
geany --vte-lib /usr/lib/libvte.so Segmentation fault (core dumped)
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 8:46:09 AM CDT, Geoff Kaniuk <geoff@kaniuk.co.uk> wrote:
There is a useful section in the manual Usage>General>Virtual terminal emulator widget (VTE)
On my Linux Debian system I launch Geany using: ~$ geany --vte-lib /usr/lib/ ... libvte- ...
The location of libvte has to be exact.
Geoff
33 Ashbury Close, Cambridge CB1 3RW 01223 710582
On 02/09/18 14:29, Andrew Kennedy via Users wrote:
I can not find the terminal tab. libvte-dev is installed.
Message window is also checked.
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 6:55:36 AM CDT, Geoff Kaniuk geoff@kaniuk.co.uk wrote:
Can you not do this from Geany's Terminal tab?
What do you mean by an open script?
Geoff
On 02/09/18 09:54, Andrew Kennedy via Users wrote:
I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Le 02/09/2018 à 16:20, Andrew Kennedy via Users a écrit :
libvte.so shows it to be "link to libvte.so.9.2.2800.2.
geany --vte-lib /usr/lib/libvte.so Segmentation fault (core dumped)
This probably suggests you're using a GTK3 build of Geany, and thus you need a libvte that is built with GTK3. For this, use libvte-2.91, libvte2_90 or similar.
You can check the Geany version and the GTK version it uses via *Help → Debug messages*, or with `geany --help`.
Regards, Colomban
gdebi libvte-2.91-0_0.52.1-1ubuntu1_amd64.deb Reading package lists... Done Building dependency tree Reading state information... Done This package is uninstallable A later version is already installed
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 1:46:21 PM CDT, Colomban Wendling lists.ban@herbesfolles.org wrote:
Le 02/09/2018 à 16:20, Andrew Kennedy via Users a écrit :
libvte.so shows it to be "link to libvte.so.9.2.2800.2.
geany --vte-lib /usr/lib/libvte.so Segmentation fault (core dumped)
This probably suggests you're using a GTK3 build of Geany, and thus you need a libvte that is built with GTK3. For this, use libvte-2.91, libvte2_90 or similar.
You can check the Geany version and the GTK version it uses via *Help → Debug messages*, or with `geany --help`.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Here you go.
14:23:21: Geany INFO : Geany 1.32, en_US.UTF-8 14:23:21: Geany INFO : GTK 3.22.30, GLib 2.56.1 14:23:21: Geany INFO : System data dir: /usr/share/geany 14:23:21: Geany INFO : User config dir: /home/andy/.config/geany 14:23:21: Geany INFO : System plugin path: /usr/lib/x86_64-linux-gnu
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 1:46:21 PM CDT, Colomban Wendling lists.ban@herbesfolles.org wrote:
Le 02/09/2018 à 16:20, Andrew Kennedy via Users a écrit :
libvte.so shows it to be "link to libvte.so.9.2.2800.2.
geany --vte-lib /usr/lib/libvte.so Segmentation fault (core dumped)
This probably suggests you're using a GTK3 build of Geany, and thus you need a libvte that is built with GTK3. For this, use libvte-2.91, libvte2_90 or similar.
You can check the Geany version and the GTK version it uses via *Help → Debug messages*, or with `geany --help`.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Le 02/09/2018 à 21:24, Andrew Kennedy via Users a écrit :
Here you go.
14:23:21: Geany INFO : Geany 1.32, en_US.UTF-8 14:23:21: Geany INFO : GTK 3.22.30, GLib 2.56.1 14:23:21: Geany INFO : System data dir: /usr/share/geany 14:23:21: Geany INFO : User config dir: /home/andy/.config/geany 14:23:21: Geany INFO : System plugin path: /usr/lib/x86_64-linux-gnu
OK, that *is* a GTK3 build, so it's pretty normal it doesn't work with libvte9.
However, you really don't have a "Terminal" tab at the bottom of the screen, next to "Status", "Compiler", "Messages" and "Notes"? It might be hidden below and there might be an arrow button to go further down.
You can also check if VTE is properly found by checking if you got a "Terminal" tab in the preferences (Edit->preferences). If you do, the terminal is found and the tab must just be hidden.
Otherwise if for some reason the VTE lib isn't loaded, you could try:
$ geany --vte-lib=/usr/lib/x86_64-linux-gnu/libvte-2.91.so.0 -v
which works on my Debian box and must be similar on a Ubuntu one. if /usr/lib/x86_64-linux-gnu/libvte-2.91.so.0 doesn't exist on your system, try and locate the one that does (find is your friend).
Anyway, paste the output of a `geany -v` run if it doesn't work as it should.
Regards, Colomban
Geany 1.32
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 2:32:30 PM CDT, Colomban Wendling lists.ban@herbesfolles.org wrote:
Le 02/09/2018 à 21:24, Andrew Kennedy via Users a écrit :
Here you go.
14:23:21: Geany INFO : Geany 1.32, en_US.UTF-8 14:23:21: Geany INFO : GTK 3.22.30, GLib 2.56.1 14:23:21: Geany INFO : System data dir: /usr/share/geany 14:23:21: Geany INFO : User config dir: /home/andy/.config/geany 14:23:21: Geany INFO : System plugin path: /usr/lib/x86_64-linux-gnu
OK, that *is* a GTK3 build, so it's pretty normal it doesn't work with libvte9.
However, you really don't have a "Terminal" tab at the bottom of the screen, next to "Status", "Compiler", "Messages" and "Notes"? It might be hidden below and there might be an arrow button to go further down.
You can also check if VTE is properly found by checking if you got a "Terminal" tab in the preferences (Edit->preferences). If you do, the terminal is found and the tab must just be hidden.
Otherwise if for some reason the VTE lib isn't loaded, you could try:
$ geany --vte-lib=/usr/lib/x86_64-linux-gnu/libvte-2.91.so.0 -v
which works on my Debian box and must be similar on a Ubuntu one. if /usr/lib/x86_64-linux-gnu/libvte-2.91.so.0 doesn't exist on your system, try and locate the one that does (find is your friend).
Anyway, paste the output of a `geany -v` run if it doesn't work as it should.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
To the person having trouble with their execute bits (too many things going on in the one thread I lost track).
Note that if in `Edit->preferences->Various` you have `use_atomic_file_saving` set then the execute bit gets cleared every time the file is saved. You could try a different setting so it is preserved on save, either `use_gio_unsafe_file_saving` set, or neither. For all gory details see https://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving.
Cheers Lex
Thanks Lex. The use_atomic_file_saving was not set.
Wonder how they came up with that name. ;-)
Geany is really handy as a pocket.
I found that settings for build commands are kept in filetypes.sh and filetypes.common.
I zipped copies of them and sent them to my backup dir.
Andy
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 3:44:03 PM CDT, Lex Trotman elextr@gmail.com wrote:
To the person having trouble with their execute bits (too many things going on in the one thread I lost track).
Note that if in `Edit->preferences->Various` you have `use_atomic_file_saving` set then the execute bit gets cleared every time the file is saved. You could try a different setting so it is preserved on save, either `use_gio_unsafe_file_saving` set, or neither. For all gory details see https://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving.
Cheers Lex _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Mon, 3 Sep 2018 at 07:52, Andrew Kennedy via Users users@lists.geany.org wrote:
Thanks Lex. The use_atomic_file_saving was not set.
Wonder how they came up with that name. ;-)
Geany is really handy as a pocket.
I found that settings for build commands are kept in filetypes.sh and filetypes.common.
Well thats one place, funnily enough there is another large wiki article on the subject by the same excellent author as the file saving one :-D https://wiki.geany.org/howtos/configurebuildmenu
Cheers The ever modest Lex
I zipped copies of them and sent them to my backup dir.
Andy
Sent via personal computer "It is always too soon to quit."
On Sunday, September 2, 2018, 3:44:03 PM CDT, Lex Trotman elextr@gmail.com wrote:
To the person having trouble with their execute bits (too many things going on in the one thread I lost track).
Note that if in `Edit->preferences->Various` you have `use_atomic_file_saving` set then the execute bit gets cleared every time the file is saved. You could try a different setting so it is preserved on save, either `use_gio_unsafe_file_saving` set, or neither. For all gory details see https://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving.
Cheers Lex
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hey there,
Andrew Kennedy via Users wrote:
I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Please forgive me if I misread your question or if any of this is more information than you needed. I use this all the time and wouldn't want to be without it:
1) Make sure your script contains a hashbang (shebang) line as its first line: https://en.wikipedia.org/wiki/Shebang_(Unix)
2) Right-click on the far right side of your toolbar and choose "Toolbar Preferences" from the context menu.
3) Click the "Customize Toolbar" button.
4) Choose "Execute" in the left pane.
5) Click the right arrow.
6) Drag the icon to where you'd like the icon to be in the toolbar in relation to the other icons in your toolbar.
7) Click the "Close" button.
8) Click the "Apply" button.
9) Click the "OK" button.
Now, any time you have a script loaded up in Geany, you can click the gear in the toolbar to save and execute the script if you've changed it or just execute it if you haven't.
Before you can execute a script, the executable bit has to be set.
Andrew Kennedy
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 10:40:17 AM CDT, Little Girl littlergirl@gmail.com wrote:
Hey there,
Andrew Kennedy via Users wrote:
I edit and test a lot of scripts using Geany. Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Please forgive me if I misread your question or if any of this is more information than you needed. I use this all the time and wouldn't want to be without it:
1) Make sure your script contains a hashbang (shebang) line as its first line: https://en.wikipedia.org/wiki/Shebang_(Unix)
2) Right-click on the far right side of your toolbar and choose "Toolbar Preferences" from the context menu.
3) Click the "Customize Toolbar" button.
4) Choose "Execute" in the left pane.
5) Click the right arrow.
6) Drag the icon to where you'd like the icon to be in the toolbar in relation to the other icons in your toolbar.
7) Click the "Close" button.
8) Click the "Apply" button.
9) Click the "OK" button.
Now, any time you have a script loaded up in Geany, you can click the gear in the toolbar to save and execute the script if you've changed it or just execute it if you haven't.
Hi,
Le 02/09/2018 à 10:54, Andrew Kennedy via Users a écrit :
I edit and test a lot of scripts using Geany.
Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Not by default, but you could get this to work a few different ways I guess. One way I can think of is defining a build command to `chmod +x "%f"`.
Regards, Colomban
Could you help me with defining a build command?
Thanks.
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 1:42:41 PM CDT, Colomban Wendling lists.ban@herbesfolles.org wrote:
Hi,
Le 02/09/2018 à 10:54, Andrew Kennedy via Users a écrit :
I edit and test a lot of scripts using Geany.
Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Not by default, but you could get this to work a few different ways I guess. One way I can think of is defining a build command to `chmod +x "%f"`.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Thanks. Following your instructions, I did the following:
Set Build Commands No filetype commands Set Exe Bit chmod +x %f
Now, whatever script is open will get the executable bit set when I click on Set Exe Bit.
Thanks to all the help from all who answered. :-)
Andrew Kennedy
Sent via personal computer"It is always too soon to quit."
On Sunday, September 2, 2018, 1:42:41 PM CDT, Colomban Wendling lists.ban@herbesfolles.org wrote:
Hi,
Le 02/09/2018 à 10:54, Andrew Kennedy via Users a écrit :
I edit and test a lot of scripts using Geany.
Is there a way to make an open script executable using Geany instead of having to do it using my file manager?
Not by default, but you could get this to work a few different ways I guess. One way I can think of is defining a build command to `chmod +x "%f"`.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users