Commit Graph

12 Commits

Author SHA1 Message Date
SimonFair 80d567dfde killall and pgrep updates.
Set --ns $$ on commands.
2024-10-10 19:18:54 +01:00
donbuehl 53704b58aa Final minimal viable solution 2024-08-27 21:43:46 +02:00
donbuehl db77c13552 MVP solution for zsh plugin
Implemented a minimal viable solution for the zsh plugin:
- Checks if the shell is /bin/zsh
- Falls back to bash if not

This approach prioritizes simplicity and reliability over a more general solution to avoid potential errors.
2024-08-26 14:29:24 +02:00
donbuehl be22c0e1f8 Simplify shell detection for openterminal 2024-08-25 15:44:28 +02:00
donbuehl cd9d20eaf3 Simplify shell detection for openterminal 2024-08-25 15:19:53 +02:00
donbuehl 7e6ad9512d Wrap getUserShell() call with escapeshellarg() for additional security 2024-08-20 09:08:31 +02:00
donbuehl d7b4dfd44b Fixed missing $ in variable 2024-08-19 22:14:46 +02:00
donbuehl c62ef28fc3 Refactor getUserShell() for improved clarity and maintainability
- Introduce  variable for better code readability
- Simplify return logic using the default shell variable
- Maintain comprehensive error handling with Throwable
2024-08-19 22:06:41 +02:00
donbuehl 07fa790411 Improve getUserShell() function for accuracy and consistency
- Refine username matching to prevent partial matches
- Use English for syslog error message
2024-08-19 21:49:31 +02:00
donbuehl fb19a99ad4 Added function getUserShell() to OpenTerminal.php and use it for the execution 2024-08-19 18:16:38 +02:00
bergware ceeb125ba9 Use "null coalescing assignment" operator for $docroot 2023-10-26 14:00:15 +02:00
Tom Mortensen f9ec00b488 repo reorg 2023-06-02 12:49:33 -07:00