Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to apply layout in i3 config folder #1765

Closed
fulljackz opened this issue Jun 23, 2015 · 3 comments
Closed

Unable to apply layout in i3 config folder #1765

fulljackz opened this issue Jun 23, 2015 · 3 comments
Labels
4.10 bug missing-log Read the CONTRIBUTING.md file for instructions

Comments

@fulljackz
Copy link

Hi,

It appears that when applying a layout to workspace in i3 config folder, layout does not apply and shell returns an error :

{22:37}~/.i3:master ✗ ➭ i3-msg "workspace 10; append_layout workspace-10.json" 
ERROR: Your command: (null)
ERROR:               (null)
ERROR: Could not determine the contents of "workspace-10.json".
[{"success":true},{"success":false,"error":"Could not determine the contents of \"workspace-10.json\"."}]

If I go up it works fine :

{22:42}~/.i3:master ✗ ➭ cd ..
{22:42}~ ➭ i3-msg "workspace 10; append_layout .i3/workspace-10.json"
[{"success":true},{"success":true}]

If I go anywere :

{22:42}/etc ➭ i3-msg "workspace 10; append_layout /home/manu/.i3/workspace-10.json"
[{"success":true},{"success":true}]

i3 version

{22:45}~/.i3:master ✗ ➭ i3 -v
i3 version 4.10.2 (2015-04-16, branch "4.10.2") © 2009-2014 Michael Stapelberg and contributors

Log available here : http://logs.i3wm.org/logs/5663998322147328.bz2

@i3bot
Copy link

i3bot commented Jun 23, 2015

I don’t see a link to logs.i3wm.org. Did you follow http://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@i3bot i3bot added missing-log Read the CONTRIBUTING.md file for instructions 4.10 labels Jun 23, 2015
@Airblader Airblader added the bug label Jun 23, 2015
@fulljackz
Copy link
Author

Oh,
It seems that execute same command in i3 config folder with full path runs fine

{22:43}~/.i3:master ✗ ➭ i3-msg "workspace 10; append_layout /home/manu/.i3/workspace-10.json"
[{"success":true},{"success":true}]

@Airblader
Copy link
Member

This has nothing to do with .i3/ being .i3/. This is simply because for the i3 process, your home directory is the working directory and hence the internal call to fopen with the "path" workspace-10.json will work if and only if the file is present in the working directory = home directory, but not anywhere else.

It will always work when specifying a full path. You can also use globbing, e.g., append_layout ~/.i3/workspace-10.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.10 bug missing-log Read the CONTRIBUTING.md file for instructions
Projects
None yet
Development

No branches or pull requests

3 participants