Other question about sddm awesome in freebsd14.2 ?

dear all:
i have used sddm with awesome in freebsd14.2 ...now i want to the sddm login awesome session , run below command :
dbus-launch awesome
not awesome ..
how to do that ?

i have try to do below step , but it's not success ...
game@notepad:/usr/local/share/xsessions $ cat awesome.desktop
[Desktop Entry]
Name=awesome
Comment=Highly configurable framework window manager
TryExec=awesome
Exec=dbus-launch&&awesome #(dbus-launch awesome ) same was bad .
Type=Application

thanks. please help me .
 
Don't need to create or modify that file. It's already proper when you install awesome.

Code:
dice@williscorto:...local/share/xsessions % cat awesome.desktop
[Desktop Entry]
Name=awesome
Comment=Highly configurable framework window manager
TryExec=awesome
Exec=awesome
Type=Application

You shouldn't need to muck around with dbus-launch and/or ck-launch-session, as far as I know sddm already takes care of that. But I'm not entirely sure, I don't use SDDM. For SLiM I created a ~/.xinitrc to make selecting possible:
Code:
DEFAULTWM= awesome

[ -f "$HOME/.Xresources" ] && xrdb "$HOME/.Xresources"

if [ -n "$1" ]; then
        case $1 in
                default) exec ck-launch-session ${DEFAULTVM}
                         ;;
                *) exec "$@"
                         ;;
        esac
else
        exec ck-launch-session urxvt
fi

I check the argument, SLiM passes the Exex as argument, if it's set or not, so my ~/.xinitrc also works with startx (without using a display manager).
 
Don't need to create or modify that file. It's already proper when you install awesome.

Code:
dice@williscorto:...local/share/xsessions % cat awesome.desktop
[Desktop Entry]
Name=awesome
Comment=Highly configurable framework window manager
TryExec=awesome
Exec=awesome
Type=Application

You shouldn't need to muck around with dbus-launch and/or ck-launch-session, as far as I know sddm already takes care of that. But I'm not entirely sure, I don't use SDDM. For SLiM I created a ~/.xinitrc to make selecting possible:
Code:
DEFAULTWM= awesome

[ -f "$HOME/.Xresources" ] && xrdb "$HOME/.Xresources"

if [ -n "$1" ]; then
        case $1 in
                default) exec ck-launch-session ${DEFAULTVM}
                         ;;
                *) exec "$@"
                         ;;
        esac
else
        exec ck-launch-session urxvt
fi
Dear SirDice :
thanks for your help . great master ..
if i don't exec "dbus-lanuch awesome " , the libreoffice will can't input chinese ...
i know the sddm can load awesome correctly.

thanks. i don't know how to let sddm login ,then exec "dbus-lanuch awesome " ,not "awesome" .
thanks.
 
i don't know how to let sddm login ,then exec "dbus-lanuch awesome " ,not "awesome" .
Create a ~/.xinitrc file in the users home directory with following settings:
Code:
dbus-launch &
exec awesome

Another option, (I didn't test it) apparently awesomewm is capable of launching programs from ~/.config/awesome/rc.lua with some configuration added.

 
Create a ~/.xinitrc file in the users home directory with following settings:
Code:
dbus-launch &
exec awesome

Another option, (I didn't test it) apparently awesomewm is capable of launching programs from ~/.config/awesome/rc.lua with some configuration added.

Dear T-Daemon :
thanks for your help .yeah, when i don't use any DM (including sddm,gdm,etc) .and start awesome from startx.
i have created ~/.xinitrc file and include "dbus-launch awesome " . yeah, this time. i can input chinese to libreoffice ..

but when i want to use some DM for login screen (example sddm ) . this time. we will not input chinese to libreoffice ..so i ask way to solve my problem. thanks.
 
i have created ~/.xinitrc file and include "dbus-launch awesome " . yeah, this time. i can input chinese to libreoffice ..

but when i want to use some DM for login screen (example sddm ) . this time. we will not input chinese to libreoffice ..
It looks like SDDM launches the awesomewm already with the dbus message bus, see highlighted line down below from a test VM.

No .xinitrc in the users home dir, "dbus_enable" and "sddm_enable" running.

/usr/local/etc/rc.d/sddm (sddm_enable) script contains "dbus" as a requirement,
Rich (BB code):
# REQUIRE:  LOGIN cleanvar moused syscons dbus

Rich (BB code):
% ps  aux  | grep  dbus
messagebus 642   0.0  0.4  15188   3688  -  Is   15:00   0:00.01 /usr/local/bin/dbus-daemon --system
sddm       754   0.0  0.4  16144   4032  -  I    15:00   0:00.00 dbus-launch --autolaunch 3012518b42b011f08f2b38f3abe7d571 --binary-syntax --close-stderr
sddm       755   0.0  0.3  15188   3496  -  Is   15:00   0:00.00 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
john       763   0.0  0.4  16144   4104  -  I    15:00   0:00.00 /usr/local/bin/dbus-launch --exit-with-x11 -- /usr/local/bin/ck-launch-session awesome
john       764   0.0  0.3  15188   3492  -  Is   15:00   0:00.00 /usr/local/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
john       776   0.0  0.2  13836   2372  0  S+   15:01   0:00.00 grep dbus

Check if dbus is realy running: service dbus status
 
Dear T-Daemon :
thanks for your help. when i don't use sddm login screen..and startx with awesome and don't open chinese input ...
game@dsa:~ $ ps aux |grep dbus
messagebus 1130 0.0 0.0 15188 3728 - Ss 11:27 0:00.01 /usr/local/bin/dbus-daemon --system
game 1243 0.0 0.0 15188 3856 - Ss 11:27 0:00.07 /usr/local/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
game 1284 0.0 0.0 15188 3568 - S 11:27 0:00.01 /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork
game 1295 0.0 0.0 13836 2396 0 S+ 11:27 0:00.00 grep dbus


ok. when at this time. i am open chinese input ..
game@dsa:~ $ ps aux |grep dbus
game 1316 0.0 0.0 13836 2400 0 S+ 11:28 0:00.00 grep dbus

when i used chinese input . all dbus will exit..
when i close chinese input , all dbus will come back...
 
when i use sddm login screen .
don't start libreoffice .
game@dsa:~ $ ps -aux |grep dbus
messagebus 1130 0.0 0.0 15188 3780 - Is 11:36 0:00.02 /usr/local/bin/dbus-daemon --system
sddm 1231 0.0 0.0 16144 4084 - I 11:37 0:00.00 dbus-launch --autolaunch b98aa540c3d011e0b01de89a8f8ec388 --binary-syntax --close-stderr
sddm 1232 0.0 0.0 15188 3532 - Is 11:37 0:00.00 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
game 1251 0.0 0.0 16144 4136 - I 11:45 0:00.00 /usr/local/bin/dbus-launch --exit-with-x11 -- /usr/local/bin/ck-launch-session awesome
game 1252 0.0 0.0 15188 3848 - Is 11:45 0:00.07 /usr/local/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
game 1294 0.0 0.0 15188 3564 - I 11:45 0:00.01 /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork
game 1315 0.0 0.0 13836 2404 0 S+ 11:51 0:00.00 grep dbus


when i load libreoffice ..
game@dsa:~ $ ps -aux |grep dbus
sddm 1231 0.0 0.0 16144 4084 - I 11:37 0:00.00 dbus-launch --
game 1552 0.0 0.0 13836 2412 0 S+ 12:21 0:00.00 grep dbus
 
if i want to use chinese input the below sddm program must exit ..
sddm 1239 0.0 0.0 16144 4072 - I 12:26 0:00.00 dbus-launch --autolaunch b98aa540c3d011e0b01de89a8f8ec388 --binary-syntax --close-stderr

when i use sddm . this dbus-launch can't exit when libreoffice start..
 
looks problem was dbus service..
sddm must running with dbus .
ibus don't need dbus .
if i want to use sddm , i can't terminate all dbus service . so the ibus can't work normal .

if i want to use ibus chinese input in libreoffice . we can't let dbus service start...

so , that made one mountian can't live 2 tigers ...
 
Dear T-Daemon :
thanks for your help . when i don't use any wm (sddm,lightdm,gdm..etc) . and start awesome with .xinitrc using startx from VT(4) ...
the .xinitrc only have below content .
exec awesome...
yeah, anything was ok. i can input chinese in anywhere including libreoffice ...

i am not sure what cause my problem. thanks.
 
Back
Top