Commit Graph

32 Commits

Author SHA1 Message Date
Robin Gareus c1be897eed
Explicitly sandbox Lua instances (3/4)
This allows UI scripts (saved in preferences) to access
os.* functions (non-sandboxed), while preventing other
scripts to do so.

Lua scripts that can run os commands can execute arbitrary
code on the system. While this is a nice feature, it can be
equally dangerous.
2023-10-04 02:50:38 +02:00
Robin Gareus 747b24f063
Change LuaWindow into an ArdourWindow
* remember window visibility, size and position
* Show as toggle in the window-menu (rather than show action)
* reduce specialization, use WM and ArdourWindow infrastructure
  (transient parent, window-type, etc)
2021-09-20 04:26:24 +02:00
Robin Gareus 8112d6472e
Drop references held by any GUI Lua script after execution 2020-01-13 20:25:00 +01:00
Paul Davis e5cb4d295e fix compiler warning about possible buffer size issue 2019-10-07 20:50:08 -06:00
Robin Gareus 4050ca5633
Update GPL boilerplate and (C)
Copyright-holder and year information is extracted from git log.

git history begins in 2005. So (C) from 1998..2005 is lost. Also some
(C) assignment of commits where the committer didn't use --author.
2019-08-03 15:53:15 +02:00
Paul Davis f448041ec0 no error logging for CURL HTTP requests; future callers can request it if necessary 2018-06-02 13:24:31 -04:00
Robin Gareus 7ae480a13d Keep Script Window on top.
Compare to f83dbf83. We cannot use an ArdourWindow here (which
would do this automatically) since we don't want any keyboard-event
forwarding from this editor-window. It's also a main window, not
a WM::ProxyTemporary.
2017-12-31 18:31:54 +01:00
Robin Gareus 12a5102713 Catch exceptions by const reference 2017-11-23 10:38:52 +01:00
Robin Gareus 3ac66ce022 Fix potentially ambiguous printf()
Not a real issue, since it's just supposed to be some unique number.
but still.

Reported by PVS-Studio - https://www.viva64.com/en/b/0540/
2017-11-23 10:12:34 +01:00
Robin Gareus 2cc32456ab Lua may call C++ functions with throw. Catch them 2017-08-19 01:06:44 +02:00
Robin Gareus d0553753af Lua Script Sandbox - GUI part 2017-08-10 02:25:54 +02:00
Robin Gareus f9e5e4360e Move more Gtkmm2ext widgets into libwidget 2017-07-17 21:06:04 +02:00
Robin Gareus 5c92613698 Separate Ardour UI widgets into dedicated library 2017-07-17 21:06:04 +02:00
Robin Gareus 0aa631b6af Increase default size of script-editor pane 2017-02-20 03:57:53 +01:00
Robin Gareus 05149f9bc5 Connect Script Manager "Edit" -> Lua Scripting Window 2017-02-19 01:29:08 +01:00
Robin Gareus f71ad74ca7 update LuaWindow output on-the-go (allow progress print) 2016-10-06 18:35:29 +02:00
Robin Gareus e9a2eea867 remove old a3_curl API and switch some curl calls
Keep freesound-moocher as is until freesound-apiv2 branch is merged
or rebased.
2016-07-18 16:46:59 +02:00
Paul Davis cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
Paul Davis 91a95b086a initial sort-of-mostly-working integration of new Pane 2016-05-31 15:30:45 -04:00
Robin Gareus b031109311 fix typo 2016-04-15 22:04:12 +02:00
Robin Gareus bd463e887a improve luawindow save/load/revert 2016-04-12 00:32:18 +02:00
Robin Gareus 957a18f635 indicate read-only scripts 2016-04-11 14:58:42 +02:00
Robin Gareus 743e6176df implement Lua editor script/file delete. 2016-04-08 18:16:32 +02:00
Robin Gareus e063e4bf1d one more ENSURE_GUI_THREAD() 2016-03-28 19:15:10 +02:00
Robin Gareus 56a41b9347 add "revert" button to lua script window 2016-03-26 14:54:10 +01:00
Robin Gareus 8af8fcab84 add a convenient script header 2016-03-25 20:00:56 +01:00
Robin Gareus c8b7d70ffa monospace font for Lua Script Window 2016-03-25 01:49:14 +01:00
Robin Gareus 67fb1d65b7 reset lua console interpreter when session changes (drop references) 2016-03-24 01:52:24 +01:00
Robin Gareus 2061c352d2 cont'd work on Lua Script Console 2016-03-24 01:44:06 +01:00
Robin Gareus 28b707061b gcc4 compat 2016-03-24 00:32:18 +01:00
Robin Gareus dafdf87b79 towards a proper lua script console UI 2016-03-23 23:44:35 +01:00
Robin Gareus 6b940afa36 Lua Script Console Window 2016-02-23 15:42:13 +01:00