You are not logged in.

#1 2017-04-02 19:57:37

rogerthat
Member
Registered: 2016-11-15
Posts: 56

[SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

I have installed xorg-server, xorg-xinit,  xterm, and openbox.
I copied the template .xinitrc file: cp /etc/X11/xinit/xinitrc ~/.xinitrc

When I run startx, it seems to run openbox just fine. However, when I exit openbox, I see the following errors in the terminal:

/home/username/.xinitrc: line 51: twm: command not found
ERROR: openbox-xdg-autostart requires PyXDG to be installed
xinit: connection to X server lost

So my question is about the errors for "twm: command not found" and "openbox-xdg-autostart requires PyXDG to be installed".
Is something wrong with my setup, and how do I fix it?

Thank you.

Last edited by rogerthat (2017-04-03 11:23:31)

Offline

#2 2017-04-02 20:39:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

You delete the unwanted lines from your .xinitrc; just like the error says.


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-04-02 21:59:26

rogerthat
Member
Registered: 2016-11-15
Posts: 56

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

Commenting out the following line in ~/.xinitrc fixed the twm error:
    #twm &

The PyXDG error persists however:
ERROR: openbox-xdg-autostart requires PyXDG to be installed

Offline

#4 2017-04-02 22:05:14

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

Openbox#autostart

Note: In addition to running ~/.config/openbox/autostart, Openbox will also launch programs with .desktop files present in /etc/xdg/autostart. This is the global autostart directory, which is automatically sourced by XDG-compliant desktop environments (e.g. GNOME, KDE). Openbox will source this directory as well, provided that the package python2-xdg is installed, and Openbox is launched as openbox-session (rather than simply openbox, as noted earlier). Duplication between ~/.config/openbox/autostart and /etc/xdg/autostart is a common cause of programs launching twice at startup (e.g. two network manager tray icons).

Offline

#5 2017-04-02 22:23:33

rogerthat
Member
Registered: 2016-11-15
Posts: 56

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

Thanks. So there is one such file there:
/etc/xdg/autostart/at-spi-dbus-bus.desktop

I found it is apparently an accessibility program (https://gnomeshell.wordpress.com/2011/0 … lications/).

Can I just delete it? Or what should I do to remove it?

Offline

#6 2017-04-02 22:31:24

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

Openbox will source this directory as well, provided that the package python2-xdg is installed, and Openbox is launched as openbox-session (rather than simply openbox, as noted earlier).

Given the error message

ERROR: openbox-xdg-autostart requires PyXDG to be installed

You have chosen not to install PyXDG but are launching Openbox as openbox-session.

$ pacman -Si openbox
Repository      : community
Name            : openbox
Version         : 3.6.1-3
Description     : Highly configurable and lightweight X11 window manager
Architecture    : x86_64
URL             : http://openbox.org
Licenses        : GPL
Groups          : lxde  lxde-gtk3  lxqt
Provides        : libobrender.so=32-64
Depends On      : startup-notification  libxml2  libxinerama  libxrandr  libxcursor  pango  imlib2  librsvg  libsm
Optional Deps   : plasma-workspace: for the KDE/Openbox xsession
                  python2-xdg: for the openbox-xdg-autostart script
Conflicts With  : None
Replaces        : None
Download Size   : 329.70 KiB
Installed Size  : 1216.00 KiB
Packager        : Balló György <ballogyor+arch@gmail.com>
Build Date      : Sat 20 Feb 2016 16:35:09 GMT
Validated By    : MD5 Sum  SHA-256 Sum  Signature

Note the optional depends.

Offline

#7 2017-04-03 08:17:48

rogerthat
Member
Registered: 2016-11-15
Posts: 56

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

Right, so there is this one autostart program used for "accessibility" that I don't need:
/etc/xdg/autostart/at-spi-dbus-bus.desktop

I didn't explicitly install it. It seems to have come with the default setup as I followed the wiki setup instructions.

How best to delete the program and get rid of the error? "ERROR: openbox-xdg-autostart requires PyXDG to be installed"

Offline

#8 2017-04-03 08:56:11

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

rogerthat wrote:

How best to delete the program and get rid of the error? "ERROR: openbox-xdg-autostart requires PyXDG to be installed"

Even if there were no programs to autostart that would not prevent the error message please reread my previous post.

Offline

#9 2017-04-03 09:17:37

rogerthat
Member
Registered: 2016-11-15
Posts: 56

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

Cool. So changing ~/.xinitrc from:
    exec openbox-session
to:
    exec openbox
fixed it.

Offline

#10 2017-04-03 09:20:06

rogerthat
Member
Registered: 2016-11-15
Posts: 56

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

I notice one more error in the log still:
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

Offline

#11 2017-04-03 09:39:39

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

rogerthat wrote:

Cool. So changing ~/.xinitrc from:
    exec openbox-session
to:
    exec openbox
fixed it.

As already mentioned, installing the optional dependency python2-xdg would have solved it, too.
edit: if you want to use openbox-session ...

Last edited by mis (2017-04-03 09:42:48)

Offline

#12 2017-04-03 10:52:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

rogerthat, please stop using this thread for unrelated questions.  Create new threads for separate questions.  In ths case of the "xf86EnableIOPorts" message, it is not an error.  It's not even a warning.  What made you pick that out of all the many many lines in the Xorg log to ask about?  And is there actually a problem?

If there is a problem, please mark this thread as solved and open a new thread to describe the action problem you are currently having.

If there is no problem, also please mark this thread as solved.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2017-04-03 11:02:28

rogerthat
Member
Registered: 2016-11-15
Posts: 56

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

OK. So, solved! smile

Offline

#14 2017-04-03 11:14:56

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] startx: twm: command not found & openbox-xdg-autostart requir

rogerthat please edit your first post and prepend [SOLVED] to the title.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB