Leftwm: Cannot start LeftWM

Created on 8 Feb 2021  路  4Comments  路  Source: leftwm/leftwm

16127744933516497767378228056594
When I try to start a LeftWM instance it returns this error. How I can fix?

Most helpful comment

You get this error because you're starting leftwm without a X server.
Go into your ~/.xinitrc and start leftwm in the last line using the command 'exec dbus-launch leftwm'
After that you can start leftwm with 'startx'

All 4 comments

You get this error because you're starting leftwm without a X server.
Go into your ~/.xinitrc and start leftwm in the last line using the command 'exec dbus-launch leftwm'
After that you can start leftwm with 'startx'

You get this error because you're starting leftwm without a X server.
Go into your ~/.xinitrc and start leftwm in the last line using the command 'exec dbus-launch leftwm'
After that you can start leftwm with 'startx'

Thanks for the fix, it works. I've another question, how I can auto-start apps at the startup with LeftWM?

LeftWM will autostart anything defined in a .desktop file in your \~/.config/autostart folder, and it will also run your current theme's "up" script. You're likely looking for the autostart method, so just add a file called (app name).desktop with the following, replacing (app name) and (/path/to/application) as needed:
_~/.config/autostart/(appname).desktop_

[Desktop Entry]
Version=1.0
Type=Application
Encoding=UTF-8
Name=(app name)
Exec=(/path/to/application)
Terminal=false
StartupNotify=true

Thats it! LeftWM should start that application on next startup (it won't re-run the application if you just soft reset LeftWM with MOD+SHIFT+R).

If you need it to restart with MOD+SHIFT+R or whenever your theme boots (such as a bar), add it to your config's up file (substantial portions omitted for brevity).
_~/.config/leftwm/themes/current/up_

#!/bin/bash
# Set background
...
/path/to/application #<---- likely the best place to put your application, but depends on the application
# Conky
...

Edit: paths

Thanks so

LeftWM will autostart anything defined in a .desktop file in your ~/.config/autostart folder, and it will also run your current theme's "up" script. You're likely looking for the autostart method, so just add a file called (app name).desktop with the following, replacing (app name) and (/path/to/application) as needed:
_~/.config/autostart/(appname).desktop_

[Desktop Entry]
Version=1.0
Type=Application
Encoding=UTF-8
Name=(app name)
Exec=(/path/to/application)
Terminal=false
StartupNotify=true

Thats it! LeftWM should start that application on next startup (it won't re-run the application if you just soft reset LeftWM with MOD+SHIFT+R).

If you need it to restart with MOD+SHIFT+R or whenever your theme boots (such as a bar), add it to your config's up file (substantial portions omitted for brevity).
_~/.config/leftwm/themes/current/up_

#!/bin/bash
# Set background
...
/path/to/application #<---- likely the best place to put your application, but depends on the application
# Conky
...

Edit: paths

Thank you so much for the reponse, I'll close this issue, thank you for your time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Stanislav-Lapata picture Stanislav-Lapata  路  6Comments

cjwyett picture cjwyett  路  4Comments

rigoletto-freebsd picture rigoletto-freebsd  路  8Comments

sillen102 picture sillen102  路  3Comments

Haruno19 picture Haruno19  路  7Comments