[SOLVED] Cannot open x apps with sudo

Hi all,
I just did a fresh install of kde in Arch, and I cannot open any x server apps, like kwrite, using "sudo kwrite". I tried xhost +localhost and my user name, but that didn't work. Then I tried tweaking the $DISPLAY... I couldn't get anything to happen either. Can anyone give me a few helpful pointers? Thanks!
Last edited by sunnieside-up (2011-09-20 05:56:56)

try with "sudo -E gedit"
from sudo manual:
       -E          The -E (preserve environment) option indicates to the
                   security policy that the user wishes to preserve their
                   existing environment variables.  The security policy may
                   return an error if the -E option is specified and the user
                   does not have permission to preserve the environment.

Similar Messages

  • After upgrading to mavericks, i cannot open mac app store, preview, calendar, etc

    Why i cannot open mac app store, preview, calendar, software update, etc after upgrading to mavericks? How can i fix this? please help me

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Cannot open pdf files with Firefox's built-in pdf viewer

    This just started (I think) with Firefox 37.01. This is on Win7-X64. I cannot open pdf files with the Firefox built-in pdf viewer. If I click on the file or try to open it from within Firefox, it brings up a "opening filename.pdf" message. If I select the "Open with" radio button as 'Firefox (default),' it just keeps looping on this process; it never opens. In Tools => Options => Applications, Portable Document Format (PDF) is indicated as 'Preview in Firefox.' I've never had any other PDF viewer installed on this computer. I've tried disabling all plug-ins and extensions, but it still doesn't work. I searched for solutions but haven't found any for this specific issue.
    Thanks for the help.

    Hello,
    Have you tried, to start Firefox in safemode you can do so by following these steps
    '''If Firefox is open,''' you can restart in Firefox Safe Mode from the Help menu:
    * Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    '''If Firefox is not running,''' you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    ;[[Image:SafeMode-Fx35]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Cannot open any apps in IOs 8.0.2

    After the update, I cannot open any apps on my Ipad Air. They open only to close again immediately. All of them. They still run in the background, but none of them will go to a full screen. I cannot reset the Ipad either, because I need to turn off location services first and it will only show me the screen for a split second before it crashed back onto the desktop/home screen. I tried the two button reset etc. The Ipad is 6 months old.....HELP!!!

    hi, Brett - I'm having a problem now restarting my iPhone.
    iTunes (yep, it's the latest Windows version) keeps crashing ("iTunes has stopped working" message).
    The installed apps are blacked out with text beneath the icon "Waiting".
    And iTunes crashes on step 4 of 4 (Syncing Apps to John Alton iPhone 5S - step 5 of 5). Starts on the first app it tries to reinstall / sync.
    I am manually installing each application because I'm unable to bring back from syn. (On the iPhone, in App Store, go to Purchased > Not on this iPhone,
    But I'm still unable to run iTunes because it crashes while attempting to re-load the applications and data.
    Little help?
    thanks,
    John

  • I recently synced my iPhone and now I cannot open my apps. They immediately pop back to home page.

    I recently synced my iPhone and now I cannot open my apps. When I touch the app, it quickly opens and then pops back to my home screen.

    Hello...I also have the same problem and cannot open some apps on my iPhone. I have tried downloading a free app but still this didn't help...rebooted phone etc.. Do you think it has something to do with my iPad? The problem started as soon as I transferred all my stuff onto it....any suggestions?? Thanks

  • Suddenly cannot open mail app on my computer

    cannot open mail app? Has always been fine, much of touched something I'm not familiar with??

    Anyone have any suggestions?? I've run iTunes for years now, this last update "killed" the ablity for it to run automatically on my Win7 machine.  I've unloaded EVERTYTHING apple on my computer 3x times now, reloaded, as admin - even paid for cleaners to make sure.  Run all the Microsoft patches, updates, everthing I could find...NOTHING seems to be working.

  • I cannot open my app (UK Tides)?

    I cannot open my App (UK Tides)?

    Try closing the app completely and see if it works when you re-open it : from the home screen (i.e. not with UK Tides '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 the UK Tides app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a 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 had a blue dot beside an app for over 8 hours and cannot open the app. I have deleted and reinstalled app and still cannot open

    I have had a blue dot beside an app for over 8 hours and cannot open the app. I have deleted and reinstalled app and still cannot open
    Partsman

    You can refer to the following article for installation help.
    If you getting issues with the validity of serial number, you can try contacting the adobe support team.
    Even without the serial number, you can use PSE for 30 days as trail and then activate the product later.

  • [KDM] Cannot start gui application with sudo

    Hi,
    After i had upgraded to kde 4.5, there was a new problem. When i want to start any gui program with sudo (e.g. sudo kwrite) i see that error:
    [simas@myhost ~]$ sudo kwrite
    No protocol specified
    kwrite: cannot connect to X server :0.0
    [simas@myhost ~]$
    Starting apps like nano works fine. I also discovered that when i use gdm instead of kdm, and boot to same kde desktop, i can start gui apps with sudo fine. when i use kdm no matter if im in gnome or kde starting gui apps from terminal with sudo just doesnt work.
    Anyone has any ideas? im starting desktop managers with inittab method.
    Last edited by syms (2010-10-11 11:49:24)

    graysky wrote:hmm... with gnome I use gksu so I believe you need the kde version of that... ksudo or kdsu I can't remember.
    well, using kdesu works fine, but i still prefer sudo. in fact everything worked fine in kde 4.4 and gdm.

  • Cannot open PDF files with Reader XI message appears Adobe Reader has stopped working

    Cannot open PDF files with Reader XI message appears Adobe Reader has stopped working. A problem has caused the program to stop working

    Which Operating system you are using?
    Can you open Adobe Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)] and then try to open the file.

  • I cannot open my apps on my iPod touch 4th generation. Every time I open an app it sends me back to the main page

    I cannot open my apps on my iPod touch 4th generation. Every time I try to open an app it sends me back to the app selection thing.

    Try a hard reset first. Press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear. 
    If still no luck, try downloading and installing a new app from the App Store.  Doing so has cleared the issue up for several users.
    B-rock

  • TS1702 The update for Pages says it is installing however it has been like this for days. Cannot open the app. What can I o?

    The update for Pages says it is installing however it has been like this for days. Cannot open the app. What can I do?

    Double tap the Home button to bring up the multi-tasking bar...tap & hold any app until they all start to wiggle...tap the red minus sign to remove every app shown. Tap the Home button when finished. Try to delete the app now.

  • I cannot open a file with suffix .ra

    i cannot open a file with suffix .ra

    thats a real time audio file. download real player to open it.
    Ryan

  • HT3775 cannot open avi file with quicktime pro7

    I cannot open avi file with quicktime pro 7

    VideoLAN - Download official VLC media player for Mac OS X

  • Install never used CS 2 - "You cannot open the app "Adobe Installer" because PowerPC applications are no longer supported.

    I want to install a never used CS 2 SW pack from my old compan,y but get the msg “You cannot open the app “Adobe Installer” because PowerPC applications are no longer supported". How can I install this so far never installed, expensive SW?

    you need to use a compatible computer,os.  eg,  System requirements | Photoshop

Maybe you are looking for

  • How do I convert a pdf file to a jpg

    How do I convert a pdf file to a jpg?

  • How to embed an Applet in a win32 application ?

    Hi, I want to write a win32 application and embed in it applet, just like IE or Netscape ... does anyone know how to do that ? could-you also cc code sample here: [email protected] thanks...

  • Problem with one loop in another one

    When I drag and move cursor, X scale position will be show below. And then I click "add data in array", the data should be put into array. I can move cursor again to add the second , the third -.into array. My problem is: In block diagram, once loop2

  • Airport to close to notebook then it hickups

    I use my Airport Express to listen to Itunes using my stereo. The airport is connected to my wireless system, and works fine as long my notebook is at least 50 cm away from the Airport. The Airport, connected to my stereo, is on a shelf in a cabinet,

  • Interactive forms in web Dynpro 4 ABAP

    Hi, where can i get the step by step procedure to use INTERACTIVE form in Web Dynpro4 ABAP Thanks SAI