Ask Your Question
0

enable logging for i3

asked 2014-02-20 00:42:47 -0500

Xavi gravatar image

Hello, I'm using the i3 window manager on top of Fedora 20 XFCE spin. I've been having problems with frozen sessions after recovering from suspension.

I'd like to activate logging for i3 to be able to troubleshoot further this problem. According to the i3 man page logging can be activated by adding the following line to your ~/.xinitrc file:

exec /usr/bin/i3 -V -d all >> ~/.i3/logfile

I've done that but it doesn't seem to be working, there is no logfile and the command line showed by ps shows only "i3" and not "/usr/bin/i3 -V -d all >> ~/.i3/logfile".

I've been looking around but I don't find where to change the i3 invocation command... Where in Fedora 20 is this located?

edit retag flag offensive close merge delete

Comments

Where do you start i3 under XFCE? I guess that's where you'll need to add the extra command line args.

Ahmad Samir gravatar imageAhmad Samir ( 2014-02-20 02:11:50 -0500 )edit

I don't, I installed i3 via yum and it shows as an option when I login via gdm.

Xavi gravatar imageXavi ( 2014-02-20 03:31:06 -0500 )edit

Have you looked in the system journal, ie journalctl _UID=<your UID>? that's probably where they go by default.

randomuser gravatar imagerandomuser ( 2014-02-20 08:27:33 -0500 )edit

He still needs to launch i3 with extra cli args so that i3 enables debug logging.

Ahmad Samir gravatar imageAhmad Samir ( 2014-02-20 09:21:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2014-02-20 04:12:52 -0500

Ahmad Samir gravatar image

If you're selecting i3 from the gdm login screen i3 is already started for you. Try editing /usr/share/xsessions/i3.desktop, change the Exec line to:

Exec=i3 -V -d all >> $HOME/.i3/logfile

edit flag offensive delete link more

Comments

Editing /usr/share/xsessions/i3.desktop (as Ahmad Samir suggests in the comments) did the trick!

Xavi gravatar imageXavi ( 2014-02-20 05:25:47 -0500 )edit

Note that if the package is updated your changes will be overwritten. FWIW you can copy /usr/share/xsessions/i3.desktop to /usr/share/xsessions/i3-custom.desktop and edit it to change the Name entry to e.g. "i3 debugging" and select that from the login screen, this way your changes won't be overwritten, but that's a bit overkill since I guess you won't leave it logging to that file forever.

Ahmad Samir gravatar imageAhmad Samir ( 2014-02-20 05:48:57 -0500 )edit

@Xavi: Please reward him by selecting his answer as the correct answer.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-02-22 01:47:15 -0500 )edit

Sure! i forgot to do it, here you go.

Xavi gravatar imageXavi ( 2014-02-22 04:10:09 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-02-20 00:42:47 -0500

Seen: 1,889 times

Last updated: Feb 20 '14