summaryrefslogtreecommitdiffstats
path: root/sway/main.c
Commit message (Collapse)AuthorAge
* Split setgid and setuid, add privilege checkLibravatar D.B2016-09-20
| | | | | | | This commit deals with issue #884. I consulted the following sources: https://www.securecoding.cert.org/confluence/display/c/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges and https://www.securecoding.cert.org/confluence/display/c/POS37-C.+Ensure+that+privilege+relinquishment+is+successful
* Reorganize includesLibravatar Drew DeVault2016-09-01
|
* sway/main.c: simplify free'ing by switching to the helper methodLibravatar Daniel Lockyer2016-05-05
|
* Update to wlc 0.0.20.5Libravatar Drew DeVault2016-04-16
|
* Implement include commandLibravatar Mikkel Oscar Lyderik2016-03-26
| | | | | | | | | | | | | | | | | | | | The include command (`include <path>`) makes it possible to include sub config files from the main config file (or from within other sub config files). The include command uses the following rules for including config files: * the `path` can be either a full path or a path that is relative to the parent config. Shell expansion is supported, so it's possible to do `include ~/.config/sway.d/*`. * The same config file can only be included once (to prevent include cycles). If a config is included multiple times it will just be ignored after it has been included once. * Including a sub config file is the same as inserting the content of that file into the parent config, thus rules about overwriting bindsyms etc. works the same as for a single config. Implement #542
* Gracefully exit when config is not foundLibravatar Mikkel Oscar Lyderik2016-03-24
| | | | | This makes sure that sway will gracefully exit if the config is not found or sway is unable to read it.
* Make the nvidia warning louderLibravatar Drew DeVault2016-03-24
|
* Don't set WLC_DIM on startup0.1Libravatar Drew DeVault2016-03-24
|
* Update to new WLC APILibravatar Drew DeVault2016-03-24
|
* Free config before exiting sway.Libravatar Mikkel Oscar Lyderik2016-02-27
| | | | | | Apart from freeing the sway_config struct, this also terminates the swaybars spawned by sway, since they are linked by PID to the bar config structs.
* Correctly exit sway on errors.Libravatar Mikkel Oscar Lyderik2016-02-26
| | | | | | | | Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
* Fix for when sway_abort doesn't exitLibravatar Yacine Hmito2016-02-25
| | | | sway_terminate does an exit in case wlc_terminate doesn't
* No options when using sway as IPC clientLibravatar Yacine Hmito2016-02-25
| | | | | | | | Sway used to attempt sending an IPC command composed of every argument after the first non-option argument encountered. Now, raises an error if an option is encountered before the intended command. Some options such as -h or -v take effect when parsing, so they still apply.
* Removed p as a valid CLI optionLibravatar Yacine Hmito2016-02-25
| | | | | | The get-socketpath long option had an undocumented short alternative as `p`. It has been removed. However, the code in the options array is still the 'p' char.
* Prevent ipc from crashing swayLibravatar crondog2016-01-22
|
* libinputLibravatar Cole Mickens2016-01-19
|
* Init layout before checking configLibravatar Mikkel Oscar Lyderik2016-01-05
|
* Handle SIGTERM sent to swayLibravatar Mikkel Oscar Lyderik2015-12-29
| | | | | | | This makes sway handle and gracefully shut down everything when receiving a SIGTERM. Fix #416
* Detect proprietary AMD drivers tooLibravatar Streetwalrus Einstein2015-12-14
|
* Implement invoking `sway` as IPC clientLibravatar Drew DeVault2015-12-12
| | | | As an alternative to invoking swaymsg.
* Merge pull request #276 from sce/earlier_loggingLibravatar Drew DeVault2015-11-29
|\ | | | | main: Setup logging before wlc_init.
| * main: Setup logging before wlc_init.Libravatar S. Christoffer Eliesen2015-11-29
| | | | | | | | | | If `wlc_init` fails the error message will never be logged or printed anywhere.
* | Fix option parsingLibravatar Christoph Gysin2015-11-28
| | | | | | | | | | | | | | | | | | | | Using 'flag' results in duplicate code paths for short and long options. This broke the -q short option in swaymsg, because there was: {"quiet", no_argument, &quiet, 'q'} Which will set quiet to 'q' and return 0, not 'q'.
* | sway: Add --help option that prints usageLibravatar Christoph Gysin2015-11-28
| |
* | sway: Print usage and exit on unknown optionsLibravatar Christoph Gysin2015-11-28
| |
* | Use macros for exit valuesLibravatar Christoph Gysin2015-11-28
|/
* sway/main: Move wlc init to after args are handled.Libravatar S. Christoffer Eliesen2015-11-28
| | | | | | | | | | First of all because it's not needed that early, and second of all because there's a bug where calling `sway --get-socketpath` via `popen` causes the child sway process to spin/hang instead of returning EOF. (Specifically `(unset SWAYSOCK; swaymsg)` hangs.) This patch fixes that. (Also note that this patch moves the "detailed review" comment, so I guess this patch requires extra detailed review?)
* Move IPC client into common, refactor IPCLibravatar Drew DeVault2015-11-27
|
* Basic support for extensions in server and clientsLibravatar Drew DeVault2015-11-18
|
* ipc: Store socketname in SWAYSOCK. Fixes `--get-socketpath`.Libravatar S. Christoffer Eliesen2015-11-13
| | | | | | | | | | After adding pid to the socket path the `--get-socketpath` command broke because it doesn't know the pid of the running instance. Fix this by setting and querying `SWAYSOCK`. Also ignore `SWAYSOCK` upon normal startup if a socket exists at that location (ie. from another sway instance), and don't overwrite `I3SOCK` if it exists either.
* main: Implement --get-socketpath switch.Libravatar S. Christoffer Eliesen2015-10-18
|
* #187, let init handle child processesLibravatar taiyu2015-10-08
|
* Revert "#187 cleanup zombies properly"Libravatar Drew DeVault2015-10-08
|
* #187 cleanup zombies properly using defaultLibravatar taiyu2015-10-07
|
* Fix warnings introduced by prior commitLibravatar Drew DeVault2015-09-18
|
* Fix build for debian stretchLibravatar Drew DeVault2015-09-18
| | | | Fixes #182
* fclose /proc/modules when we're done with itLibravatar Drew DeVault2015-09-02
|
* Add check for nvidia module and warn userLibravatar Drew DeVault2015-09-02
|
* Log sway version on startupLibravatar Drew DeVault2015-09-02
|
* Added in better versioning infoLibravatar Luminarys2015-08-26
|
* move_container_to fixupLibravatar taiyu2015-08-26
|
* Added in build version based on git hashLibravatar Luminarys2015-08-25
|
* longopt minor fixLibravatar taiyu2015-08-25
|
* Prefix log events from wlc with [wlc]Libravatar Drew DeVault2015-08-23
|
* Handle wlc log eventsLibravatar Drew DeVault2015-08-23
|
* Remove wlc logging stuffLibravatar Drew DeVault2015-08-21
|
* added sway_terminate to exit cleanlyLibravatar minus2015-08-20
|
* properly exit swayLibravatar minus2015-08-20
| | | | | - wlc_terminate() instead of exit(0) - unlink IPC socket
* very basic IPC implementationLibravatar minus2015-08-20
| | | | simply executes the received data as command
* Add command line parsingLibravatar Drew DeVault2015-08-20
| | | | Closes #6