El Sun, 04 Jul 2010 21:30:58 +0100, Alfredo Amaya escribió:
Perfecto, eso sí ha funcionado. Pero estoy viendo en la techbase de KDE la poca documentación que hay acerca de DBUS en general. El tema es que en otro lado del script mostraba otro kdialog (un --progressbar) que iba cambiando paso a paso, y parece que hacer tal cosa no es posible ahora mediante DBUS.
Pues a mí me dice dice que la opción no está disponible.
¿Qué opción? No entiendo. En el link que pasas de la techbase (al que yo me refería) usan ese mismo kdialog. Es muy raro que no lo tengas.
No es una opción, es la propiedad o método. Ahora te paso el error concreto que saca.
He cargado la KDE4Live y con el usuario normal tampoco lo muestra (si lanzas el script desde Konsole verás el error).
Te refieres a la live de Factory? A mí me funca en KDE 4.4.4 sobre la 11.2
No, es la KDE4Live, esta: http://home.kde.org/~kdelive/
Bueno, a ver, si ejecuto lo que pones más abajo como usuario funciona (sin la barra de progreso).
¿¿¿¿???? Raro, raro, raro, la barra de progreso debe tirar, es un control muy común. ¿No te funciona en Kmail, por ejemplo?
No funciona tal y como está definida en ese script. La ventana aparece pintada en mitad de la pantalla y la barra de progreso también, pero la barra no se mueve, no avanza.
Y como root, haciéndolo como te he comentado antes, también lanza la ventanita (sin la barra, igualmente):
su - -c "/ruta/al/script/script.sh"
Dice algo así como "No such method Set in interface ... at object path / ProgressDialog signature... line 5: command org.kde.kdialog.ProgressDialog not found"
A mí me sale exactamente lo siguiente como root, ¿es este tu caso?:
kdialog(6705): Session bus not found
KCrash: Application 'kdialog' crashing... Warning: connect() failed: : No existe el fichero o el directorio KCrash cannot reach kdeinit, launching directly. drkonqi(6707): Session bus not found
A ver, si ejecuto el script que has pasado como usuario root -y como te he dicho :-)-, aparece la ventana en la pantalla, al igual que sucede cuando el script lo lanza el usuario común, y veo lo siguiente en konsole: *** linux@linux:~/Escritorio> su - -c "/home/linux/Escritorio/test.sh" Error: org.freedesktop.DBus.Error.UnknownMethod No such method 'Set' in interface 'org.freedesktop.DBus.Properties' at object path '/ProgressDialog' (signature '') /home/linux/Escritorio/test.sh: line 5: org.kde.kdialog.ProgressDialog: command not found Error: org.freedesktop.DBus.Error.UnknownMethod No such method 'Set' in interface 'org.freedesktop.DBus.Properties' at object path '/ProgressDialog' (signature '') /home/linux/Escritorio/test.sh: line 10: org.kde.kdialog.ProgressDialog: command not found Error: org.freedesktop.DBus.Error.UnknownMethod No such method 'Set' in interface 'org.freedesktop.DBus.Properties' at object path '/ProgressDialog' (signature '') /home/linux/Escritorio/test.sh: line 15: org.kde.kdialog.ProgressDialog: command not found *** En cambio, si lo ejecuto como root pero *sin iniciar una shell de login* (es decir, sin "su -"), veo exactamente lo mismo que tú y efectivamente, no aparece ninguna ventanita en la pantalla: *** linux@linux:~/Escritorio> su -c "/home/linux/Escritorio/test.sh" kdialog(8058): Session bus not found KCrash: Application 'kdialog' crashing... Warning: connect() failed: : No existe el fichero o el directorio KCrash cannot reach kdeinit, launching directly. drkonqi(8060): Session bus not found Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. /home/linux/Escritorio/test.sh: line 5: org.kde.kdialog.ProgressDialog: command not found Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. /home/linux/Escritorio/test.sh: line 10: org.kde.kdialog.ProgressDialog: command not found Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. /home/linux/Escritorio/test.sh: line 15: org.kde.kdialog.ProgressDialog: command not found Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. *** Saludos, -- Camaleón -- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org