mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-24 01:40:14 -05:00
break change: remove autostar.sh and MANGOCONFIG env
This commit is contained in:
parent
c89ad7e992
commit
f9fb00d6d2
3 changed files with 2 additions and 41 deletions
|
|
@ -542,7 +542,6 @@ arrange(Monitor *m,
|
|||
static void arrangelayer(Monitor *m, struct wl_list *list,
|
||||
struct wlr_box *usable_area, int exclusive);
|
||||
static void arrangelayers(Monitor *m);
|
||||
static char *get_autostart_path(char *, uint32_t); // 自启动命令执行
|
||||
static void handle_print_status(struct wl_listener *listener, void *data);
|
||||
static void axisnotify(struct wl_listener *listener,
|
||||
void *data); // 滚轮事件处理
|
||||
|
|
@ -4313,7 +4312,6 @@ run(char *startup_cmd) {
|
|||
|
||||
set_env();
|
||||
|
||||
char autostart_temp_path[1024];
|
||||
/* Add a Unix socket to the Wayland display. */
|
||||
const char *socket = wl_display_add_socket_auto(dpy);
|
||||
if (!socket)
|
||||
|
|
@ -4327,9 +4325,7 @@ run(char *startup_cmd) {
|
|||
|
||||
/* Now that the socket exists and the backend is started, run the
|
||||
* startup command */
|
||||
if (!startup_cmd)
|
||||
startup_cmd = get_autostart_path(autostart_temp_path,
|
||||
sizeof(autostart_temp_path));
|
||||
|
||||
if (startup_cmd) {
|
||||
int piperw[2];
|
||||
if (pipe(piperw) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue