Reno is the second iteration of the AWMTK-powered AwesomeWM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.3 KiB

2 years ago
  1. -- This file is part of Reno desktop.
  2. --
  3. -- Reno desktop is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  4. --
  5. -- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  6. --
  7. -- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>.
  8. -- Error logging module
  9. local loghandler = io.open(os.getenv("HOME").."/.awesome_errors","w")
  10. local naughty = require("naughty")
  11. if awesome.startup_errors then
  12. loghandler:write("[STARTUP] "..tostring(awesome.startup_errors).."\n")
  13. naughty.notify({title = "ERROR", text = tostring(awesome.startup_errors)})
  14. end
  15. do
  16. local in_error = false
  17. awesome.connect_signal("debug::error", function(err)
  18. if in_error then return end
  19. in_error = true
  20. loghandler:write("[RUNTIME] "..tostring(err).."\n")
  21. naughty.notify({title = "ERROR", text = tostring(err)})
  22. in_error = false
  23. end)
  24. end