[SOLVED] Problem with running GUI apps as root

Hi,
I have a serious problem with running any kind of software having GUI as root, which is indispensable for editing system files. For example I want to edit /etc/pacman.conf file with KWrite, and here's what I get
[zbyszek@barca ~]$ xhost +
access control disabled, clients can connect from any host
[root@barca zbyszek]# kwrite /etc/pacman.conf
kwrite(11282): Session bus not found
KCrash: Application 'kwrite' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde4/socket-barca/kdeinit4__0
Warning: connect() failed: : Nie ma takiego pliku ani katalogu
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
drkonqi(11284): Session bus not found
Can anyone help me with this? Can anyone tell me how to login as root?
Thank you in advance.
Last edited by Zibi1981 (2010-10-05 19:30:20)

O.K., but how to run KWrite as root on my account??? That was my main question
karol wrote:
Try running 'xhost +' as root.
https://bbs.archlinux.org/viewtopic.php?pid=817674
Maybe vim is in edit mode when you press 'i' but it doesn't show '-- INSERT --' at the bottom of the screen.
Here you are
[root@barca zbyszek]# xhost +
access control disabled, clients can connect from any host
[root@barca zbyszek]# kwrite /etc/pacman.conf
kwrite(12941): Session bus not found
KCrash: Application 'kwrite' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde4/socket-barca/kdeinit4__0
Warning: connect() failed: : Nie ma takiego pliku ani katalogu
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
drkonqi(12942): Session bus not found
Last edited by Zibi1981 (2010-09-25 10:19:50)

Similar Messages

  • Problem with running the app outside NetBeans (loading fxml from jar)

    Hello.
    this problem occurs only when NOT using NetBeans (becouse NB may use this normal file sctructure, without jars)
    here is part of my main class, start method
            //load FXMLs
            FXMLLoader primaryLoader = new FXMLLoader();
            URL primaryLocation = getClass().getResource("PrimaryStage.fxml");
            primaryLoader.setLocation(primaryLocation);
            Parent root = (Parent) primaryLoader.load();
            Scene primaryScene = new Scene(root);
            FXMLLoader secondaryLoader = new FXMLLoader();
            URL secondaryLocation = getClass().getResource("SecondaryStage.fxml");
            secondaryLoader.setLocation(secondaryLocation);
            System.out.println("sec loader = " +secondaryLoader.toString()
                    +"\n sec loc from loader = "+secondaryLoader.getLocation()
                    +"\n sec loc url = " + secondaryLocation
                    +"\n pri loc url = " + primaryLocation);
            Parent secondaryRoot = (Parent) secondaryLoader.load();
            Scene secondaryScene = new Scene(secondaryRoot);and the thing is the 1st url (primaryLocation) is loaded properly, and the secondLocation aint.
    those 2 files are both in the same jar, same folder (packege) as main class.
    the outcome looks like this
    sec loader = javafx.fxml.FXMLLoader@5bde2a20
    sec loc from loader = null
    sec loc url = null
    pri loc url = jar:file:/C:/test_workspace/NetBeans/MZlike/dist/MoreAdvStuff.jar!/moreadvstuff/PrimaryStage.fxml
    Exception in Application start method
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.javafx.main.Main.launchApp(Main.java:486)
            at com.javafx.main.Main.main(Main.java:638)
    Caused by: java.lang.RuntimeException: Exception in Application start method
            at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
            at com.sun.javafx.application.LauncherImpl.access$000(Unknown Source)
            at com.sun.javafx.application.LauncherImpl$1.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.IllegalStateException: Location is not set.
            at javafx.fxml.FXMLLoader.load(Unknown Source)
            at moreadvstuff.MoreAdvStuff.start(MoreAdvStuff.java:55)
            at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
            at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
            at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
            at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
            ... 1 morewhere 55 line is
    Parent secondaryRoot = (Parent) secondaryLoader.load();any ideas how to fix it? loading the file manually from the jar may be a way, but its a workaround, not a solution
    Edited by: Radosław on 2012-05-17 07:55

    Hi,
    The root cause of the exception appears is here:
    sec loc url = nullThis means that the URL returned here by getResource() was null:
            URL secondaryLocation = getClass().getResource("SecondaryStage.fxml");So the only thing you have to do is figure out why this call returned null. Usually it returns null if the resource is not found in the jar/classpath.
    Last time it happened to me it was because I had misspelled the file name.
    Check that your file is not named SecondaryStage,fxml instead of SecondaryStage.fxml or something like that. Also check that it's actually present in the jar - or in the build/ directory and at the expected place (next to the class that loads it).
    Hope this helps,
    -- daniel

  • ? I have a problem with the cloud app. i have downloaded it several times and have no problem. when it runs it then opens up but stays blank so i cant see my apps or download any HELP

    ? I have a problem with the cloud app. i have downloaded it several times and have no problem. when it runs it then opens up but stays blank so i cant see my apps or download any HELP

    >opens up but stays blank
    BLANK Cloud Screen http://forums.adobe.com/message/5484303 may help
    -and step by step http://forums.adobe.com/thread/1440508?tstart=0
    -and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html

  • Is anyone having problems with the Health App and Withings?

    After upgrading to ios 8.1 I am still having a problem getting my Withings Health Mate data to correctly update my Healt Dashboard. The information that does show up on the different Dashboard widgets is way off. For example, I today walked 2400 steps according to Withings, but the Health Dashboard shows 10,700 steps (720,000 in smaller print on another line). It further shows my daily average at 313,000 steps! Ridiculous.
    Walking/Running distance for the days shows 22.5 miles with a daily average of 108 miles.....I'm not Barry Allen/The Flash.

    My problems with the Healt App are all over the map. The information on Withings Health Mate is totally accurate, and updates immediately.  I have their scale (since 2011) and wireless blood pressure monitor. Also, I find the heart rate senson on the iPhone 6 to work well, every time.
    This issue for me is with Apple's Health app. I get ridiculous readings on the Dashboards. For example, it shows my daily average in steps as 170,688, and miles walked at 80. Hardly! Additionally, the Dashbord widgets will disappear/reappear for no reason. I have tried switching the priority of data sources for the steps dashboard between Withings and my iPhone 6 (because it is indicated that the top source governs the dashboard info), to no avail.
    Lastly, I don't know how to interpret the infomration on the individual dashboards. On the same line as the word "Steps" there is a number, i.e. 14,272 steps, and just under it the word "Today." However, when I switch from "Day," "Week,," "Month," and "Year," those number don't change. Below the word Today is a number (which changes all the time), and at the bottom of the widget, just above the month (October now) is the number 1,149,749. Nice.
    I would like to get the Apple Watch next year, but if the Health App cannot be fixed I may not.

  • I am having problems to run an app, there is an error display that says I need to set bonjour and that this app serial number has been used by another red user,  could anybody guide me?

    I am having problems to run an app, there is an error display that says I need to set  bonjour services

    Logic is the APPlication (program, app) that you are having the problem with.
    Logic Pro can take advantage of other computers on your local (home or work) network to help it do "heavy lifting" data chores by using Bonjour and a feature called Nodes.   It seems that Logic is attempting to find and connect to another machine on your network.
    Do you have Logic installed on another computer there?  That may be the source of the confilict.
    You might want to post this question in the Logic Pro Community.
    Be sure to indicate the version of Logic Pro that you are using.  I'm sure the folks there can help you out.

  • I've a problem with my mail app

    I have a problem with my mail app, after upgrading mavericks.
    My mail app was worked well, before I upgrade.
    Now, my mail app is working only with icloud account.
    I can use my gmail account with safari or other web browsers, but not in the mail app.
    That was happening both of my macbook pro, and macbook air, but not on my iPad and iPhone.
    I tried deleting account and re added it, but that doesn't solve the problem.
    what should i do..??

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I ve a problem with running the javabeans

    dear all
    i ve a problem with running javabean in forms 9i all codes, program units are correct. i think there is something with classpath which i dont where to put the path of bean jar files. however the simple code for the Colorpicker and keyFilter dont work when clicking the button to fire the trigger to bring the bean up.
    thank you
    Walaa eddien

    Walaa,
    Make sure you've entered the implementation class (do not append the class extension). For example, if you have a class example.class in the package otn.oracle.forum, the implementation class should be: otn.oracle.forum.example
    Make sure you place the containing java archive in <OH>/forms90/java and do not forget to update the configuration section (default or app specific) parameter archive_jini accordingly.
    Jeroen van Schaijk

  • Problem with a few apps - A few Apps Greyed out

    Hello Guys,
    I have an iPAD 2 (64 Gig no 3G). I have the below problem with 4-5 apps
    - The App does not show up in any of the home screens
    - Search does not show the Apps
    - Search for the specific App in App Store shows that the App is installed, but there is no way i can delete these Apps from my iPAD  or use them
    - There was an update for one of the above missing Apps, but the update button was greyed out in the App Store.
    I want to use a few of the above Apps, but there is no way i can either use them or delete them.
    Any help is resolving the above is highly appreciated.
    Thanks,
    Lavanya.

    All,
    At last i resolved the problem ... To be franck ... it was not a problem to begin with. We forgot about some restrictions that we had set and the Apps that were missing were newspaper and music apps that were not sutable as per the rules that were set and so not showing up.
    Just though of posting this as this might help poeple like me running around
    Thanks,
    Satya.

  • Problem with CC desktop app update

    Anybody has Problem with CC desktop app update?

    Hi boloco
    here are some soultions, which helped me out on my first trouble:
    CC desktop lists applications as "Up to Date" when not installed
    Good luck (I have new problems today which could not be solved by one of those)

  • Problem with my facebook Apps

    I have problem with my facebook Apps,the application not working cause net_rim_bb_lib uncaught and its terminated? How to solved its?

    delete the facebook app, reboot your Curve, then install it back.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • HT4009 Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I wan

    Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I want you to help me everyways to refound my monet back.Could you?

    Contact iTunes Store Support.

  • Hello Apple? How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Have you tried closing all apps via the iPad's multitasking bar and then doing a soft-reset and seeing that helps ? To close all apps :
    iOS 7: double-click the home button to open the taskbar, and then swipe or drag each app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    iOS 6 and below : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...

    I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...what should I do?

    Hi Arika,
    The drivers that you need to install to make your executable work depends on what your executable is doing. To get started, you need to have the LabVIEW Run-Time Engine installed on your target machine (the Win2000 machine you are planning to use) in order to run your executable. Next, you need to determine what drivers your executable uses, if any. For example, if you are using GPIB instrument control, you will need to install the NI-488 drivers on your target machine. If you are performing data acquisition, you will need to install NI-DAQ drivers. If you are doing image acquistion, you will need to install NI-IMAQ drivers.
    All these drivers are available for downloading on ni.com. To get the drivers, go to ht
    tp://www.ni.com/support , click on the link that takes you to Drivers and Updates (under Option 3), and click on the links to get to the driver(s) you need. For example, if you need the LabVIEW 5.1.1 Run-Time engine, click on the All Drivers and Updates by Application link on the main page (http://www.ni.com/softlib.nsf/). Then click on the LabVIEW link, Windows 2000, Run Time Engine, and then you will see the link to get to the page to download the LabVIEW 5.1.1 Run-Time Engine.
    I hope this information helps.
    Best Regards,
    Wilbur Shen
    National Instruments

  • Problem with running the midlet class (Error with Installation suite )

    hi everyone...
    i have problem with running the midlet class(BluetoothChatMIDlet.java)
    it keep showing me the same kind of error in the output pane of netbeans...
    which is:
    Installing suite from: http://127.0.0.1:49296/Chat.jad
    [WARN] [rms     ] javacall_file_open: wopen failed for: C:\Users\user\javame-sdk\3.0\work\0\appdb\delete_notify.dat
    i also did some research on this but due to lack of forum that discussing about this,im end up no where..
    from my research i also find out that some of the developer make a changes in class properties..
    where they check the SIGN DISTRIBUTION...and also change the ALIAS to UNTRUSTED..after that,click the EXPORT KEY INTO JAVA ME SDK,PLATFORM,EMULATOR...
    i did that but also didnt work out..
    could any1 teach me how to fix it...
    thanx in advance... :)

    actually, i do my FYP on bluetooth chatting...
    and there will be more than two emulators running at the same time..
    one of my frens said that if u want to run more than one emulator u just simply click on run button..
    and it will appear on the screen..

  • Strange problem with the mail app on an iPad

    I've got a bit of a strange problem with the mail app on an iPad - it's sending and receiving mail ok but won't let you delete mail. If you keep at it, it appears as if you have deleted mail (though takes a very long time as you just have to keep deleting it over and over again) -  but the size of the app still keeps going up - reached 600mb so far, even though there is hardly any mail or attachments (goes up quite a lot each time you try to delete anything) - any idea what's causing this and how I can fix it?
    It occasionally comes up with a dialogue panel saying to check my account settings, but I have checked those and they are fine. The little 'loading' icon just keeps spinning constantly too.

    go to Settings > Mail > your account > Advanced > Move Discarded Messages Into 
    and make sure that Deleted Mailbox is ticked, and not Archive Mailbox
    You can also adjust how long the deleted mail stays in the trash immediately below that.
    If you are talking about a gmail account, you may also have to login to your account on the gmail server and update the settings there.  This is what Barney previously posted about that:

Maybe you are looking for

  • Laptop has been hijacked by security defender how can i get rid of it

    security defender somehow attached to firefox now it pops up trying to sell me a anti virus program it wont let me click on the next box

  • SALERT_CREATE -custom alert creation for validation

    Hi, I have done one scenario,in which i have used the custom alert creation calling the SALERT_CREATE function module from my udf.That is doing fine but now i have an understanding problem that, in the udf we need to use one RFC receiver comm channel

  • Determining page region through FacesContext

    In 11g, what's the best way of determining which region (jsff) is currently being used ? In 10g to provide conditional "Requery Condition" I used to use #{facesContext.viewRoot.viewId} on the group to check if the table or the form view was being use

  • Reverse Backflush Problem in MF12

    Dear fellows, In my R/3 system, I wanted to Backflush BOMs of more than 999 items. Since the maximum number of items for an FI document ('999') exceeds, based on SAP Note 1353827, I have manually created a new include LFACIFSP. Now, the Backflush mec

  • GATP: How to consider SNP Deployment demand (EG) into ATP check ?

    Hello experts, we have a location 1000 where we run GATP. This location serves customers directly (via normal SalesOrders) and serves other locations like a DC via STOs. Serving other location is done (in a nutshell) using SNP which creates SNP STOs