[Auto-montage] Problème avec OpenBox (Résolu)

Reconnaissance et configuration du matériel / kernel linux
Roguesarefine
newbie
Messages : 5
Inscription : mar. 06 sept. 2011, 08:54

[Auto-montage] Problème avec OpenBox (Résolu)

Message par Roguesarefine »

Bonjour à tous !

Je viens vous faire part d'un souci plutôt étrange constaté depuis quelques semaines maintenant.
Alors histoire de placer le contexte, mon système est à jour, et je tourne avec OpenBox. Mon explorateur de fichiers, puisque c'est ce qui nous intéresse ici est Thunar, mais je suis confronté au même problème avec PCManFM.

Alors concrètement, si j'ouvre un terminal et y exécute

Code : Tout sélectionner

thunar
tout fonctionne très bien, les volumes (de tous types, distants ou non) sont tous détectés et auto-montés.

Par contre, si je lance Thunar depuis le menu d'OpenBox, ça me lance une instance de l'explorateur de fichiers qui est incapable de détecter puis de monter un volume. Voici les quelques lignes du menu.xml concernées :

Code : Tout sélectionner

  <item label="Home">
    <action name="Execute">
      <command>thunar ~/</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
Voici deux screens illustrant peut-être mieux le souci (voir le bandeau à gauche):

Lancé depuis la console, tout est fonctionnel
Lancé depuis OpenBox, pas de détection ni montage

J'avoue que je ne comprends pas. En quoi lancer Thunar depuis la console ou depuis le menu d'OpenBox pourrait-il donner deux instances avec deux fonctionnements différents ?

En vous remerciant d'avance pour vos réponses !
Dernière modification par Roguesarefine le mar. 06 sept. 2011, 14:02, modifié 1 fois.
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [Auto-montage] Problème avec OpenBox (En cours)

Message par tuxce »

Ça doit être du à ton .xinitrc, je sais pas comment le tout est lancé, mais depuis le terminal, t'as une session dbus valide, depuis openbox, tu n'en as pas ou elle n'est connectée à rien du tout.
En gros, il nous faut plus d'infos sur comment est lancé la session (startx (~/.xinitrc) ? autre ?)
Roguesarefine
newbie
Messages : 5
Inscription : mar. 06 sept. 2011, 08:54

Re: [Auto-montage] Problème avec OpenBox (En cours)

Message par Roguesarefine »

Merci de ta réponse.

Je lance ma session avec SLiM, le fichier de conf :

Code : Tout sélectionner

# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
# numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd ~/.xinitrc %session
# login_cmd           exec /bin/bash -login .xinitrc %session
# login_cmd	exec ck-launch-session /bin/bash -login ~/.xinitrc %session
login_cmd	exec ck-launch-session /bin/bash -login /usr/bin/openbox-session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon	yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            openbox-session

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        simone

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login          no


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       archlinux-darch-white

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log
Et le .xinitrc :

Code : Tout sélectionner

DEFAULT_SESSION=openbox-session
case $1 in
  openbox-session|gnome-session)  exec ck-launch-session $1;; 
  *)  exec ck-launch-session $DEFAULT_SESSION;; 
esac
Avatar de l’utilisateur
tuxce
Maître du Kyudo
Messages : 6677
Inscription : mer. 12 sept. 2007, 16:03

Re: [Auto-montage] Problème avec OpenBox

Message par tuxce »

Je ne vois nulle part "dbus", c'est ton .xinitrc complet ?

Sinon, si tu mets ck-launch-session dans le slim.conf, il faut la supprimer du .xinitrc.
Modifie le .xinitrc par:

Code : Tout sélectionner

DEFAULT_SESSION=openbox-session
case $1 in
  openbox-session|gnome-session)  DEFAULT_SESSION=$1;;
esac
exec dbus-launch "$DEFAULT_SESSION"
(Normalement le "$1" comporte le nom des environnements et non la commande :))
Roguesarefine
newbie
Messages : 5
Inscription : mar. 06 sept. 2011, 08:54

Re: [Auto-montage] Problème avec OpenBox

Message par Roguesarefine »

J'ai effectué les modifications que tu m'as suggéré, mais le problème persiste :/

Le bandeau répertoriant les volumes à gauche de Thunar reste désepérement vide quand je lance l'explorateur depuis le menu d'OB.
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [Auto-montage] Problème avec OpenBox

Message par FoolEcho »

Roguesarefine a écrit :

Code : Tout sélectionner

login_cmd   exec ck-launch-session /bin/bash -login /usr/bin/openbox-session
Sauf que tu n'utilises pas le ~/.xinitrc avec dbus là.

Sinon, côté log (/var/log/slim.log quand tu passes par slim), ça donne quoi ?
«The following statement is not true. The previous statement is true.» :nage:
Roguesarefine
newbie
Messages : 5
Inscription : mar. 06 sept. 2011, 08:54

Re: [Auto-montage] Problème avec OpenBox

Message par Roguesarefine »

Voilà le log demandé :

Code : Tout sélectionner

/usr/bin/xauth:  file /var/run/slim.auth does not exist


slim: waiting for X server to begin accepting connections
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.10.3.901 (1.10.4 RC 1)
Release Date: 2011-07-29
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.0.0-ARCH i686 
Current Operating System: Linux sam1015 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 07:32:23 UTC 2011 i686
Kernel command line: root=/dev/sda6 acpi_osi=Linux
Build Date: 08 August 2011  08:28:07AM
 
Current version of pixman: 0.22.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Sep  6 13:09:34 2011
(==) Using config directory: "/etc/X11/xorg.conf.d"
(EE) Failed to load module "vesa" (module does not exist, 0)
(EE) Failed to load module "fbdev" (module does not exist, 0)
.The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

/usr/bin/xauth:  file /home/sam/.Xauthority does not exist
which: no hsetroot in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/java/bin:/opt/java/db/bin:/opt/java/jre/bin:/usr/bin/vendor_perl:/usr/bin/core_perl)
which: no esetroot in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/java/bin:/opt/java/db/bin:/opt/java/jre/bin:/usr/bin/vendor_perl:/usr/bin/core_perl)
Conky: desktop window (ab) is root window
Conky: window type - desktop
Conky: drawing to created window (0xe00001)
Conky: drawing to double buffer
tint2 : nb monitor 1, nb monitor used 1, nb desktop 4

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

** Message: applet now removed from the notification area
** Message: applet now embedded in the notification area
Exception in thread "main" java.lang.NoClassDefFoundError: transfert/Downloads
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
	at java.lang.Class.getMethod0(Class.java:2685)
	at java.lang.Class.getMethod(Class.java:1620)
	at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:484)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:476)
Caused by: java.lang.ClassNotFoundException: transfert.Downloads
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	... 6 more
** Message: applet now removed from the notification area
tint2 : nb monitor 1, nb monitor used 1, nb desktop 4
** Message: applet now embedded in the notification area
error 3: BadWindow (invalid Window parameter) request 15 minor 0 serial 7689
Conky: received SIGHUP or SIGUSR1. reloading the config file.
Conky: desktop window (ab) is root window
Conky: window type - desktop
Conky: drawing to created window (0xe00001)
Conky: drawing to double buffer
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 82 [94%] [-3.75dB] [off]
[1308:1350:107955588:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1350:107955863:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1350:107960455:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1350:107960601:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1386:108714207:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1417:108728199:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1418:108734758:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1418:108742292:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1386:108744226:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1417:108751428:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1419:108765656:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1420:108773798:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1419:108791095:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1420:108810910:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1421:108877340:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1421:108877550:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1421:108883932:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1421:108884078:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1388:109058089:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1388:109079104:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1454:109127672:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1454:109164988:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1452:109166142:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1355:109197553:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1456:109201499:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1452:109203191:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1456:109217175:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1355:109236284:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1345:109281664:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1420:109305655:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1434:109330175:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1450:109342319:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1345:109345227:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1389:109363616:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1434:109371645:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1420:109387534:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1450:109400876:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1389:109418869:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1446:109432375:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1445:109434246:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1445:109446103:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1350:109453832:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1446:109472887:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1436:109474866:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1350:109488802:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1435:109500079:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[1308:1436:109501921:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
Failed to open VDPAU backend libvdpau_nvidia.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type

Merci de vos réponses !
derfric
Hankyu
Messages : 22
Inscription : sam. 13 août 2011, 00:46

Re: [Auto-montage] Problème avec OpenBox

Message par derfric »

Hello..... Je suis dans la meme configuration à savoir Openbox avec Slim pour la connection..... et chez moi ca marche bien....
Voici mon slim.conf ( enfin la ligne pour lancer openbox ) :

Code : Tout sélectionner

# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session
# login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session

Et mon .xinitrc :

Code : Tout sélectionner

exec ck-launch-session dbus-launch openbox-session

En espérant repondre a ta demande......
Roguesarefine
newbie
Messages : 5
Inscription : mar. 06 sept. 2011, 08:54

Re: [Auto-montage] Problème avec OpenBox

Message par Roguesarefine »

C'est tout bon, je ne sais pas comment j'en étais arrivé à mettre autant de bazar dans ces deux fichiers.
Merci à derfric pour avoir résolu mon problème, et bien évidemment merci à tuxce et FoolEcho d'avoir pris de leur temps pour faire avancer la discussion.
Répondre