So, I would like to launch Gemini CLI using firejail which actually protects my system highly. I'm trying below but it doesn't work and it stops at console:
cat plugins/nvim-gemini-companion.lua ✔ at 12:52:37
return {
"gutsavgupta/nvim-gemini-companion",
dependencies = { "nvim-lua/plenary.nvim" },
event = "VeryLazy",
config = function()
require("gemini").setup({
cmds = {
"firejail",
"--read-only=/",
"--read-write=" .. vim.fn.getcwd(),
"--env=GEMINI_API_KEY=" .. (os.getenv("GEMINI_API_KEY") or "xxxxx"),
"--profile=" .. vim.fn.expand("~/.config/firejail/gemini.profile"),
"gemini",
"--yolo",
},
win = {
preset = "right-fixed", -- Options: "right-fixed", "left-fixed", "bottom-fixed", "floating"
width = 0.8,
-- height = 0.8,
}
})
end,
keys = {
{ "<leader>xg", "<cmd>GeminiToggle<cr>", desc = "Toggle Gemini sidebar" },
{ "<leader>xc", "<cmd>GeminiSwitchToCli<cr>", desc = "Spawn or switch to AI session" },
{ '<leader>xs', '<cmd>GeminiSend<cr>', mode = { 'x' }, desc = 'Send selection to Gemini' },
{ "<leader>xa", "<cmd>GeminiAccept<cr>", desc = "Accept the changes" },
{ "<leader>xr", "<cmd>GeminiReject<cr>", desc = "Reject the changes" },
So, I would like to launch Gemini CLI using firejail which actually protects my system highly. I'm trying below but it doesn't work and it stops at console:
Here is the screenshot: