mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 15:36:29 +01:00
Make main.c less stupid
This commit is contained in:
parent
a74268dfab
commit
e7a8868514
1 changed files with 2 additions and 5 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
struct sway_config *config;
|
||||
|
||||
bool load_config() {
|
||||
void load_config() {
|
||||
// TODO: Allow use of more config file locations
|
||||
const char *name = "/.i3/config";
|
||||
const char *home = getenv("HOME");
|
||||
|
@ -22,13 +22,10 @@ bool load_config() {
|
|||
free(temp);
|
||||
config = read_config(f);
|
||||
fclose(f);
|
||||
return true;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
if (!load_config()) {
|
||||
return 0;
|
||||
}
|
||||
load_config();
|
||||
return 0;
|
||||
|
||||
static struct wlc_interface interface = { };
|
||||
|
|
Loading…
Reference in a new issue