You are not logged in.
Not really sure what I'm doing wrong but trying to use gnome-terminal in AwesomeWM.
For some odd reason that didn't work when I switched it over in the RC.lua file. I had to install the default terminal but not really liking it. I saw that maybe an issue with the locale but that wasn't it. I'm trying to see if it works executing it in xterm but that didn't open it.
gave me
# Error creating terminal: Could not activate remote peer 'org.gnome.Terminal' : startup job failed
I used the command
dbus -launch gnome terminal
I placed it in both .xinitrc and my rc.lua file. It started up gnome-terminal when I used startx and I was able to make more gnome-terminal using the command but couldn't open it up with the hot key or left-clicking it. Until I placed the same command in the rc.lua. It works but I'm confused why the command. Is there a way I can just use it normally?
Last edited by Scubba91 (2024-09-26 18:26:39)
Offline
Don't dbus-launch anything. Ever. (Unless you know why and actually mean to)
Post your xinitrc and what command actually generated the error in your post?
Also please use [code][/code] tags.
Offline
I have this running in my .xinitrc file
#!/bin/bash
dbus-launch gnome-terminal
exec awesomewhich solved the problem I was able to launch gnome-terminal but wasn't working with the hot keys or just clicking the option. I also had to put this in the .lua file which was able to fix it. But since you said that is not good. That's not good I'm using it twice then. I checked if my dbus was working it was. I was told that gnome-terminal not going to work without other things for it to run properly.
Last edited by Scubba91 (2024-09-25 02:02:09)
Offline
Not html tags, bbs ones ![]()
Your xinitrc is broken, see the last link below and what to include at least and basically never run dbus-launch (unless you actually want to run a dbus sub-session, which is … basically never)
Offline
Okay pretty much fixed it copied and pasted and just exec my awesome on top. But I also included dbus-launch in my rc.lua file. Is there a way i can open it up gnome-terminal? For some reason it's not opening up in awesome, only with dbus. I can open it using the command gnome-terminal but can't if I i try with awesome
Offline
But I also included dbus-launch in my rc.lua file
Don't. This is never correct.
Post your updated xinitrc and the outputs of
loginctl session-status
ps aux | grep dbusDo you use a DM like "ly" to start the session?
Offline
#!/bin/sh
exec awesome
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name loginloginctl session-status gave me this output
- scubba (1000)
Since: Wed 2024-09-25 17:42:32 UTC; 44min ago
State: active
Leader: 620 (login)
Seat: seat0; vc1
TTY: tty1
Remote: no
Service: login
Type: tty
Class: user
Idle: yes since Wed 2024-09-25 17:45:07 UTC (41min ago)
Unit: session-1.scope
├─ 620 "login -- scubba"
├─ 639 -bash
├─ 837 /bin/sh /usr/bin/startx
├─ 852 xinit /home/scubba/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.jUFwixAcaW
├─ 853 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.jUFwixAcaW
├─ 861 awesome
├─ 871 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
├─ 874 /usr/lib/at-spi-bus-launcher
├─ 880 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-addr>
├─ 891 /usr/lib/at-spi2-registryd --use-gnome-session
├─1076 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
├─2204 bash /home/scubba/.local/share/Steam/steam.sh
├─2298 /home/scubba/.local/share/Steam/ubuntu12_32/steam-runtime/usr/libexec/steam-runtime-tools-0/srt-logger >
├─2320 /home/scubba/.local/share/Steam/ubuntu12_32/steam -srt-logger-opened
├─2339 /home/scubba/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/bin/steam-runtime-supervisor --exit>
├─2352 /home/scubba/.local/share/Steam/ubuntu12_32/steam-runtime/usr/libexec/steam-runtime-tools-0/srt-logger >
├─2368 /home/scubba/.local/share/Steam/ubuntu12_64/steam-runtime-sniper/pressure-vessel/libexec/steam-runtime->
├─2421 steam-runtime-launcher-service --alongside-steam
├─2537 /usr/lib/pressure-vessel/from-host/bin/pressure-vessel-adverb --generate-locales --fd 11 --regenerate-l>
├─2564 ./steamwebhelper -lang=en_US -cachedir=/home/scubba/.local/share/Steam/config/htmlcache -steampid=2320 >
├─2567 /home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --monitor-self-annotation=ptype=crashpad-han>
├─2571 "/home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --type=zygote --no-zygote-sandbox --no-sand>
├─2572 "/home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --type=zygote --no-sandbox --user-agent-pro>
├─2594 "/home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --type=utility --utility-sub-type=network.m>
├─2602 "/home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --type=gpu-process --no-sandbox --user-agen>
├─2614 "/home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --type=utility --utility-sub-type=storage.m>
├─2633 "/home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --type=renderer --user-agent-product=Valve >
├─2953 "/home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --type=utility --utility-sub-type=audio.moj>
├─3631 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
├─3636 /usr/lib/gnome-terminal-server
├─3644 bash
├─5586 "/home/scubba/.local/share/Steam/ubuntu12_64/steamwebhelper --type=renderer --user-agent-product=Valve >
├─5698 /usr/lib/firefox/firefox
├─5763 /usr/lib/at-spi-bus-launcher
├─5775 /usr/lib/firefox/firefox -contentproc -parentBuildID 20240924171327 -prefsLen 31532 -prefMapSize 254517>
├─5795 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 31673 -prefMapSize 254517 -jsI>
├─5853 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 37765 -prefMapSize 254517 -jsI>
├─5910 /usr/lib/firefox/firefox -contentproc -parentBuildID 20240924171327 -sandboxingKind 0 -prefsLen 37801 ->
├─5939 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 34375 -prefMapSize 254517 -jsI>
├─5947 /usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 34375 -prefMapSize 254517 -jsI>
├─6021 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 34375 -prefMapSize 254517 -jsI>
├─6056 /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 34375 -prefMapSize 254517 -jsI>
├─6089 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
├─6094 /usr/lib/gnome-terminal-server
├─6102 bash
├─6252 loginctl session-status
└─6253 less
Sep 25 18:14:21 scubba sudo[5292]: pam_unix(sudo:session): session opened for user root(uid=0) by scubba(uid=1000)
Sep 25 18:14:25 scubba sudo[5292]: pam_unix(sudo:session): session closed for user root
Sep 25 18:15:08 scubba sudo[5363]: pam_systemd_home(sudo:account): New sd-bus connection (system-bus-pam-systemd-home-5>
Sep 25 18:15:08 scubba sudo[5363]: scubba : TTY=pts/1 ; PWD=/home/scubba ; USER=root ; COMMAND=/usr/bin/pacman -S vul>
Sep 25 18:15:08 scubba sudo[5363]: pam_unix(sudo:session): session opened for user root(uid=0) by scubba(uid=1000)
Sep 25 18:15:10 scubba sudo[5363]: pam_unix(sudo:session): session closed for user root
Sep 25 18:25:28 scubba dbus-daemon[3631]: [session uid=1000 pid=3629] Activating service name='org.a11y.Bus' requested >
Sep 25 18:25:28 scubba dbus-daemon[3631]: [session uid=1000 pid=3629] Successfully activated service 'org.a11y.Bus'
Sep 25 18:26:06 scubba dbus-daemon[6089]: [session uid=1000 pid=6087] Activating service name='org.gnome.Terminal' requ>
Sep 25 18:26:06 scubba dbus-daemon[6089]: [session uid=1000 pid=6087] Successfully activated service 'org.gnome.Termina>
lines 48-70/70 (END)ps aux
dbus 502 0.0 0.0 7236 3680 ? Ss 17:42 0:00 /usr/bin/dbus-broker-launch --scope system --audit
dbus 503 0.0 0.0 7200 3176 ? S 17:42 0:00 dbus-broker --log 4 --controller 9 --machine-id 20a24a6108654d81b21a264c7935f1f0 --max-bytes 536870912 --max-fds 4096 --max-matches 131072 --audit
scubba 863 0.0 0.0 6812 3116 ? Ss 17:45 0:00 /usr/bin/dbus-broker-launch --scope user
scubba 864 0.0 0.0 4096 2268 ? S 17:45 0:00 dbus-broker --log 4 --controller 9 --machine-id 20a24a6108654d81b21a264c7935f1f0 --max-bytes 100000000000000 --max-fds 25000000000000 --max-matches 5000000000
scubba 871 0.0 0.0 6128 2008 ? Ss 17:45 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
scubba 880 0.0 0.0 5992 3944 ? S 17:45 0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/1000/at-spi/bus_0
scubba 1076 0.0 0.0 5992 2412 ? Ss 17:45 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
scubba 3631 0.0 0.0 6140 2300 ? Ss 17:51 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
scubba 6089 0.0 0.0 5992 2220 ? Ss 18:26 0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --session
scubba 6288 0.0 0.0 6640 4308 pts/0 S+ 18:28 0:00 grep --color=auto dbus
scubba@scubba:~$ Offline
#!/bin/sh
exec awesomeNothing after those two lines gets executed, the xinitrc is still broken.
You want "exec awesome" before "twm &" and then also can just a much delete the tail.
Then remove the dbus-launch stuff from your awesome config.
Offline
Wow, it was that simple. I didn't know I had to place it like that. I remember seeing something like it can go on top or anywhere. That was my bad. Thank you for taking the time and helping me. This os is hard but in a fun way
Offline