The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Activate logging in session

asked 2015-01-15 10:30:51 +0000

Clerius gravatar image

updated 2015-01-16 17:56:27 +0000

Michael gravatar image

Hi,

I'm using debian testing with XFCE and installed i3 through the repository. To start i3 I just select it on the login screen from the desktop manager. I wanted to activate logging, but changing the Exec line in /usr/share/xsessions/i3.desktop leads to the following error:

Xsession: unable to launch “i3 -V -d all > $HOME/.i3/log-$(date +'%F-%k-%M-%S') 2>&1″ X session —“i3 -V -d all > $HOME/.i3/log-$(date +'%F-%k-%M-%S') 2>&1″ not found; falling back to default session.

I used https://ask.fedoraproject.org/en/ques... to create it. Also tried the debugging description from the docs, but I get the same error. The command i3-dump-log from the docs is working, but I would prefer to have session-based logfiles instead of dumping it manually.

Any hints on how to solve the Xsession problem or how to activate logging with specific logfiles?

PS: Apologies for not linking to my sources, my karma is not sufficient for that yet.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2015-01-16 18:03:36 +0000

Michael gravatar image

I think your display manager does not support arguments in the Exec directive (you didn’t specify which display manager you’re using).

A simple fix could be to switch to a different display manager.

Alternatively, you could create a shell script which wraps the command you want to run, and then specify that in Exec=

Or, you could just not have logs for each session and use i3-dump-log, even though you stated you don’t like that approach. I haven’t understood why not, and the disadvantage of logging everything to your file system is that you need to rotate these logs away. I’ve seen more than one computer where the disk got full because of i3 debug logs, as they are really verbose.

edit flag offensive delete link more

Comments

Didn't mention it because I'm not sure. But it seems only lightdm is installed, so I assume thats the one I'm using. I'm now using i3-with-shmlog in the i3.desktop file to be able to use i3-dump-log. Where does i3 store its log by default? Didn't find anything on the i3-with-shmlog man page.

Clerius gravatar imageClerius ( 2015-01-19 14:08:20 +0000 )edit

I don't want to have all sessions in one log-file. And maybe I want to check the output of one of the earlier sessions on a day. But I understand the size problem and maybe the i3-with-shmlog solution is enough.

Clerius gravatar imageClerius ( 2015-01-19 14:14:18 +0000 )edit

Question Tools

Stats

Asked: 2015-01-15 10:30:51 +0000

Seen: 1,207 times

Last updated: Jan 16