Commits
- Commit:
f8c6e75351fd01dc58eabd367348ce79fe131193
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reuse struct session_tab when saving the session
- Commit:
bb28f1c2f6463f1e8881c90bb17a404cf7e5c3b7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move parse_last_session to the fs process
~/.telescope/session was parsed in the main process before dropping in
the sandbox: that's no good. This moves the initialization of the ui
events later in ui_main_loop and makes so that the fs process, after
entering the sandbox, parses and sends the content of the last session
back to the main process; when it's done the ui gets loaded and
telescope is back rocking.
I'm plannig to re-use the struct session_tab during the save session
operation soon.
- Commit:
f88fbabc2b1988a4c36c637b77c842b8f80c9ddb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
adjust some comments text
- Commit:
de04b1788232dab669d2026c101a686199a97c7c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[xdg] move pages path under $XDG_DATA_HOME instead of CONFIG_HOME
OK andrea
- Commit:
fb3d08c1f0590014fcb4230feb8fda8fa056773e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move declarations from telescope.h in fs.h
and while there also publish various path. It's easier and better to
have all of them exported from here instead of hardcoding them in other
files (such as sandbox.c)
- Commit:
444dad86beaaa60bd96790c7097aa66bb331e645
- From:
- Omar Polo <op@omarpolo.com>
- Date:
dirname fix
dirname(3) is really one of the worst part of POSIX, portability-wise.
Implementors can decide to either modify the passed string or return a
pointer to an internal storage.
The current code fails when dirname returns a pointer to an internal
storage because between the strcmp call and the mkdir we go into a
recursion that can modify `path'. We can't use copy either because
*some* implementation of dirname would have changed that.
How to escape from this hell? Take yet another copy of the path!
- Commit:
eb2ed626f304f3f1e00711c20d76ecfd8dcc5ce7
- From:
- Andrea Feletto <andrea@andreafeletto.com>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
support xdg basedir
Use XDG-compliant paths unless ~/.telescope already exists. Provide a
script to migrate to XDG-style directory for users who wish to do so.
- Commit:
633bf6d87d247b0fddf6259b176f491c3f736318
- From:
- Omar Polo <op@omarpolo.com>
- Date:
delete old (and wrong) comment
it's been a while since we're using a lockfile to protect against
multiple telescope instances.
- Commit:
328e791598d3c671e2bd13164515d8748f9aaf27
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort includes
- Commit:
2b409042b17a5f12c9138df589881e336798f862
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ignore the crashed file if in safe_mode
During safe_mode the fs process shouldn't open or unlink the
crashed_file.
- Commit:
be97d6e6eed961ec5caf528306c94ffd55437328
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve crash detection
Create a file ~/.telescope/crashed on startup and unlink it on
shutdown. If it's present on startup, it means that last time we
crashed. It's like the ``dirty'' bit on filesystems to guard for
unproper unmounts.
- Commit:
24a681582d89feab2267fb50d4dd39a05612aaa1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve error reporting
- Commit:
5d43215b6f73e6a45da02d7868786eb84195163a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
redirect on directories without slash
- Commit:
5cbe17635e5b5884548a53bd3c09b401dbd15e51
- From:
- Omar Polo <op@omarpolo.com>
- Date:
skip "." (and ".." if in /)
- Commit:
65124267f8546533ef276a4658f63d856332aa3e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
generate directory listings