This forum has been archived. All content is frozen. Please use KDE Discuss instead.

pre-KDE script breaks KDE (ArchLinux)

Tags: None
(comma "," separated)
Axxelsian
Registered Member
Posts
2
Karma
0
I'm a little new to Arch linux, but i created a script for starting VNC, and thought that if i ran it pre-KDE it would not require a login. Since then i have learned that to be incorrect(it actually runs it after login, before KDE loads...i think), but once i login now, KDE loading screen appears, then the screen turns black, the cursor is available, and KDE desktop does not start.

i can get to terminal(ctrl+alt+F2), and if i try
Code: Select all
plasma-desktop &
it has an error that says:
Code: Select all
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
plasma-desktop(441): KUniqueApplication:Cannot find the D-Bus session server: "Unable to autolaunch a dbus-daemon without a $Display for X11
plasma-desktop(440): KUniqueApplication: Pipe closed unexpectedly.


The script i wrote is:
Code: Select all
#!/bin/bash
x11vnc -usepw -many -display :0


I've tried doing
Code: Select all
sudo rm ~/.kde4/startvnc.sh
, but it says that it does not exist(But i know it's there)
I also tried to edit it using nano, but it doesnt see it.
I tried to move it using
Code: Select all
mv
but it doesnt see it as well.

I guess i either have the directory written incorrectly somehow, or i need to be able to edit the startup scripts i added in the startup&shutdown section of the KDE system settings, but i dont know how i would do that...

**EDIT: I've also tried reinstalling KDE now, did not help.
Minio
Registered Member
Posts
177
Karma
1
OS
Axxelsian wrote:I've tried doing
Code: Select all
sudo rm ~/.kde4/startvnc.sh
, but it says that it does not exist(But i know it's there)

Isn't that sudo resets environment, so ~ points out to root's home directory (/root/)? Just feed him full absolute path, /home/<your-username>/.kde4/startvnc.sh.
Anyway, why use sudo in the first place? If this file is in your home directory, you don't need superuser privileges to change it.

If you have added your script through KDE System Settings, then it should be in ~/.kde4/Autostart/ directory.


Best regards
Mirosław Zalewski
Axxelsian
Registered Member
Posts
2
Karma
0
So it turns out i was in root by accident, so there was no home folder to look in :/. noob linux mistakes...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
In regards to the error message you saw:
Code: Select all
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
plasma-desktop(441): KUniqueApplication:Cannot find the D-Bus session server: "Unable to autolaunch a dbus-daemon without a $Display for X11
plasma-desktop(440): KUniqueApplication: Pipe closed unexpectedly.

This is because KDE depends upon an operational X server and appropriate environment variables indicating which X server it should connect to.
Your X server running on VT 7 is not accessible to sessions started on other virtual terminals, unless you set the right environment variables.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]