[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.
Similar Messages
-
Since I've used syncthing I loved it. So it had to make my friends to use it and in one of them we have following error every time we want to start it.
Cannot start GUI: listen tcp 127.0.0.1:8080: bind: address already in use
Does anyone have experienced this before?
Last edited by Marvix (2014-07-19 19:43:49)Only under HTTPS as I had already set it before.
I think I found the solution. I had the program to run, since the installation it recommends to autostart with
systemctl start syncthing@user
and i stopped it using
systemctl stop syncthing@user
and tried again with success without error.
Thank you very much for your time.
Last edited by Marvix (2014-07-19 19:44:26) -
How to start a application with a login window?
hi there
does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
<code>
// set up thread for login window
new Thread(new Runnable() {
public void run() {
// construct your login window here
// when you are done processing the
// password....
if(goodPassword) {
authorized = true; // a global variable
notifyAll(); // don't forget this
else {
System.exit(42);
}).start();
// control does not stop this code gets executed while
// the above thread is running.
// Set up main program here. This is done in the
// backround.
while(!authorized) {
synchronized(this)
{ wait(50); }
// now when the user logs in this frame pops
// up real quick.
myFrame.setVisible(true);
</code>
Hope you can figure it out.. good luck :) -
"You cannot use this application with this version of OS X"
Hi,
I'm getting this message when I try to open .AVI files that I uploaded from my digital camera, but I'm posting it here instead of in the Quicktime section because I believe that the cause of the problem is more general. When researching this problem, I looked at the info panel for these .AVI files, and the app listed to open them was "Quicktime Player (default) (7.1.3)". But the actual version of Quicktime that I have installed is version 7.4. If I set the file's "Open With" app to be "Quicktime 7.4", it opens fine, but the "Open With" app reverts back to "Quicktime Player (default) (7.1.3)", making the problem come back. I've also noticed that if I right-click on other apps (a PDF file, for example), and choose "Open With" from the popup menu, that I see other versions of apps that no longer exist on my machine (Safari 2.0.4, for example). I think that files associated with these older app versions may be the cause of many of the "You cannot use this application with this version of OS X" issues that have been reported here. My question is where is this list of "installed" products maintained in OS X, and is there a way that I can edit it to remove those product versions that no longer exist on my system. In my particular instance, I'd like to remove "Quicktime 7.1.3" which should allow me to set the associated app for my .AVI files to be Quicktime 7.4 with no possibility of the association reverting to an earlier version that's not only incompatible with Leopard, but also not installed on my system.
Thanks,
KenWhen you associate a file with an application, are you then clicking the "Change All" button? You can rebuild the LaunchServices database. Evidently the location of the command and the database have changed slightly in Leopard from what they were in Tiger. See this thread for the updated instructions:
http://discussions.apple.com/thread.jspa?messageID=5730491
Also, make sure you don't have the old applications archived somewhere. I've been astonished in the past at just how enterprising the system can be in finding some program squirreled away in an obscure backup folder and listing it as an option to open something.
Francine
Francine
Schwieder -
Cannot start X applications after a few days in the desktop
I've seen an issue the last month or so, that after a period of time (unsure how long really, my computer is rarly rebooted), a few days or more, I'm suddenly not allowed to start X applications anymore.
This includes both from the KDE start menu and from terminals. I only get this message:
When trying to start kwrite for instance:
Invalid MIT-MAGIC-COOKIE-1 key kwrite: cannot connect to X server :0
Or with sudo I've seen:
No protocol specified
kwrite: cannot connect to X server :0
This happens to all applications until I restart the X server and it's starting to get annoying to restart it every few days due to this. I checked my .Xauthority file and it is intact (I took a backup to see if it was mangled by something).
There's nothing in the kernel logs or X.org log, only messages from boot time.
I'm running testing on with the open source radeon drivers if it matters, x86_64.
Has anyone else seen something like this?Similar issues have been solved by taking care of hostname, which may be tricker that expected https://bbs.archlinux.org/viewtopic.php … 3#p1271493
MIT-MAGIC-COOKIE-1 issue: https://bbs.archlinux.org/viewtopic.php?id=163644 - no solution.
If you're trying to run graphical apps as root or with sudo, read https://wiki.archlinux.org/index.php/Ru … ps_as_root -
How can I start any application with buttons
Hello, I want to start any kind of applications with Buttons. I want to make me a GUI with buttons and with one button I want to start Outlook, but I dont know how this will work!
THX for your helpRuntime class exec methods
If your Outlook executable is in different path ... import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Test2 extends JFrame implements ActionListener
public Test2()
super("Test");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(300, 200);
JButton b = new JButton("Outlook Express");
b.addActionListener(this);
getContentPane().setLayout(new FlowLayout());
getContentPane().add(b);
public void actionPerformed(ActionEvent e)
try{
Runtime runTime = Runtime.getRuntime();
Process proc = runTime.exec
("C:\\Program Files\\Outlook Express\\msimn.exe");
proc.waitFor();
}catch(IOException ioe){System.out.println("Wham");}
catch(InterruptedException ie){System.out.println("Bop");}
public static void main(String[] args)
new Test2().setVisible(true);
} -
Cannot start BSP application from browser
hi all
Cannot start standard BSP application TUTORIAL_1 through web browser. When i test TUTORIAL_1 , a seprate browser window opens which asks for login credientals but no contents are displayed.
i checked SICF service and they are active ,also i set parameter icm\server_port_0 and icm\host_name_full
Still i m getting a ABAP DUMP "CX_BSP_HOST_NOT_QUALIFIED" and no contents displayed in browser
Can you anyone please help me urgently?
Regards
Ujval> What do you say ?
That a little bit of work is still required here. As you write that you don't want to restart application server, and this is only a test server, let me make a suggestion.
Do <u><b>NOT</b></u> change anything on the WebAS server.
<u>Step 1:</u> Find you hosts file (on my machine it is c:\winnt\system32\drivers\etc\hosts) and add the following line into this file.
1.2.3.4 myWebAS.domain.ext myWebAS
The name is not important, but must be a string you will remember. The 1.2.3.4 is the IP address of your WebAS. Please write in the correct value instead of my example value!
<u>Step 2:</u> Start you BSP application as usual. When the popup comes for your password, press cancel. You will now see in the top of the browser some URL of the form: http://myWebAS:port/sap/... The :port is only there if you are not using the default port 80. Now manually change the URL by adding the domain you configured previously. It should now be: http://myWebAS.domain.ext:port/sap/... Press ENTER to load this URL.
This way you are using a FQDN, and the browser is able to resolve this pseudo name onto the correct IP address. The WebAS/BSP will be happy with this.
Not the most satisfactory solution, but it should get you at least on the road.
++bcm -
This device cannot start (Code 10) with Rocksmith Realtone Cable (USB Audio)
Hi there.
Let me start off by saying that my problem is specific to only windows 8.1 64x and deals with usb devices.
My specs:
Crucial MX100 ssd
Win 8.1 Pro 64x
MSI Gtx 970
MSI Gaming 5 z97
i7-4790k
I'm trying to connect my Rocksmith Realtone cable (usb audio) to a usb port on my pc and whenI right click the "Usb audio device) in device manager, this pops up under properties. There is also a yellow exclamation mark on the device.
This device cannot start. (Code 10)
The I/O request was canceled."
Now, like I said, this is only on win 8.1 64x. I installed win 7 64x on an older hdd and put it in my pc and the cable was recognized right away and was usable. I have tried:
Manually uninstalling the device, and reinstalling
Manually installing the device driver
Formatted ssd and did a fresh install of win 8.1
Tried it on win 7 with same pc and it worked fine
Updated realtek drivers
Updated Nvidia drivers
Disabled xHCI in bios
Disabled legacy usb support in dios
Disabled eHCI in bios
Enabled usb powered hubs in bios
Disabled selected powering in power options + made a new high performance profile
Here are photos of the problem
http://puu.sh/gPfLJ/73044b5afe.png
http://puu.sh/gPfNm/9e63769f7d.png
Every other usb device I have/try works. I tested all my usb 2.0 and usb 3.0 ports and they all work with my mouse, keyboard, and flash drive.
I'm not really sure where to go from here. I contacted Ubisoft (maker of the game Rocksmith) and they said it was a driver issue and I haven't received any more help. I'd really rather not need to dual boot win 7 and win 8.1 just to use the cable.Paul
Given what the cable does and what device manager looks like it is a driver issue. Their driver. Your best bet is to contact the developer BUT I do wonder if you have tried re-installing the driver in compatibility mode for win 7
To install in compatibility mode do the following:
Right click the installer>properties>compatibility>choose OS
http://windows.microsoft.com/en-US/windows-vista/Make-older-programs-run-in-this-version-of-Windows?SignedIn=1
(works in vista, win 7, win 8, and win 10)
Wanikiya and Dyami--Team Zigzag -
Gnome 3.12 cannot launch gnome-terminal with sudo
I am suffering from a problem that seems similar to the thread https://bbs.archlinux.org/viewtopic.php?id=180103 and https://bbs.archlinux.org/viewtopic.php?pid=1402702 but since they are marked solved I am opening my own.
My real problem is I use this encrypted USB stick called an ironkey. Without going into too much detail, in order to unlock the encrypted partition on it I need to run an executable on it, typically like this:
sudo /run/media/ccooper/IronKey/linux/ironkey
I am getting the error
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 1
The ironkey launcher for some reason spawns a new terminal to ask for my passphrase, which is the problem.
I have narrowed it down to just being unable to launch gnome-terminal with sudo or as root.
So in summary, i can launch a gnome-terminal as my normal user, but not with sudo. I also cannot sudo -i and launch a gnome-terminal either.
I have run the localectl and localegen commands, as described as the "fix" but they do not help me.
# localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: n/aThanks for the reply OOO, I'm just about to open bug for gnome (did a break for lunch )
Are you still suffering from the issue?
can you please provide some details, for example your gnome version and if you have gnome-screensaver and or xscreensaver installed and or activated?
are you using GDM or lightDM?
I noticed from: https://wiki.archlinux.org/index.php/GNOME that the display manager has role in the locking/screesaver mechanism:
Note: Native support for screenlocking in GNOME is provided by GDM. If you choose to not use GDM you will need to use a different screen locking program such as XScreenSaver.
about your say for Antergos,
I would like to direct you to: distrowatch
Antergos using standart arch and AUR packages (managed by packman), I would say that Antergos is arch, just with graphical installer..
If you think that it's not arch, we can continue and argue about this fact, but I would like to concentrate on trying to understand and resolve the "blank screen" issue (that I believe is actually a gnome issue )
opened: https://bugzilla.gnome.org/show_bug.cgi?id=737256
please add your info there as well.
Thanks,
Elia. -
Is it possible to start an application with parameters
Hello together,
I have written an application which is stored on a network. People from different computer start it to work with it. Now I have the problem, that I need some different configurations on each computer.
Is it possible to start a labview application with parameters, like: application.exe -User_1
The application should check the parametes and should switch to the needed configuration.
Thanks a lot and best regards,
Michael
Solved!
Go to Solution.Hi Michael,
yes it is possible. First you have to activate the data transfer of your parameters. You can do it in the application builder. It is something like "send command line parameters to exe" which you have to activate. You will get the parameter in your program with the property "App.Args". It is an array with the exe name as the first element and one entry for each additional linked parameter.
Hope it helps.
Mike -
[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. -
Wifi card cannot start (Code 10) with 4 port USB2.0 hub inserted
Hello,
I could use some help with the following:
I have an IBM Thinkpad 390X 2626 L0A with 512MB and W2K SP4, for internet/networking I use an Wifi card with an Atheros AR2413A chipset. This setup works great but recently I bought a 4 port USB2.0 hub cardbus with a VIA VT612 chip.
When I insert the USB hub in the second (top) slot and conect a memory stick to it the internet/networking connection falls away. Properties in devicemanager shows: Cannot start device, Code 10.
When I restart with both cards inserted I get the same message.
When I use both cards in a Toshiba Tecra 8000 256MB and W2K SP4 they both work fine. So it looks like the cards are working fine.
I installed all the latest drivers and BIOS for the Thinkpad and for the cards.
My questions are:
Is there anyone with the same problem.
Is there a kown solution. Maybe some changes in the registry.
Could a program like CardWizard help.
Any other advice is also welcome.
Thanks,
AntoineGlad to be joining ship.
I also thought about an IRQ conflict. But W2K SP4 should be able to handle that and actually doesn't allow you to manually change IRQ settings. Device manager shows both cards on/with IRQ 7. Maybe there is something I can do with the PCI manager in Configuration Manager but I wouldn't know what. It just reads Device 1,3,4 on IRQ 11 en Device 2 on IRQ 5.
I think it is most likely a power issue, since the Wifi-card uses (relatively) a lot of power. Using Configuration Manager I already shut down all not used ports (serial, parallel, joystick, IR and modem) and I also tried disabling the PCI power management in BIOS.
I'm looking for a tweak (registry) to boost the power to the pcmcia slots or just the slot containing the wifi-card, or to assign a different IRQ to each slot/device. Also I would like to try the Card Wizard program that was available for the NT versions. -
ITunes mysteriously plays music but I cannot start the application
Hey there ... I guess the title says it all. The window was open but suddenly closed. When I hit the play button on my keyboard the music plays but I cannot open the application anymore.
Airplay in now located in control center.
-
Start external application with oracle job
I'm trying to start external program with oracle job.
Here is an example (I used SYS as SYSDBA):
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'my_job',
job_type => 'executable',
job_action => 'C:/WINDOWS/system32/cmd.exe',
enabled => true,
auto_drop => false );
END;
But job STATE comes FAILED.
How should I do this?
Result was not better when I used
BEGIN
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name => 'my_prg',
program_type => 'EXECUTABLE',
program_action => 'C:/WINDOWS/system32/cmd.exe',
enabled=>TRUE);
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'my_job',
program_name => 'my_prg',
enabled => TRUE,
auto_drop => false );
END;
Edited by: user458393 on Feb 16, 2010 1:55 AMTake a look at this thread: Running a Windows BAT file using DBMS_SCHEDULER
C. -
Start 6i application with runtime fully maximized
Hi all,
I want to start my application (Client/Server) fully maximized.
How can I do this?
Thanks
SilkeHi all
I've found the solution! :-)
Maybe you are looking for
-
What is the best way to prepare for CERTIFICATION?
what is the best way to prepare for CERTIFICATION? what is needed? where can i read more about it?
-
Bea content repository bug (?)
Hi All, I've encountered a problem working with the Bea weblogic content repository. I've tried to create a new property for a content type wich has already some contents associated. The results is that if i try to set the new proprery value, for a c
-
My I-Pod will not accept a charge. The battery icon I normally see while charging is not visible. The cord works when charging my I-Pad. Any ideas?
-
Repair permissions takes for ever again
Hi, I had a problem on my PB G4 further to running Repair Permissions from a Tiger boot disk: it took almost a night for Disk Utility to read through the database and to repair permissions. I decided to proceed with an A&I of Leopard, using my 10.5.1
-
Actionscript 3 Class Not Running More Than Once After Using The GoToAndStop function
I'm having a strange issue, and I am sure it's due to my lack of knowledge about how classes fully work in Adobe AIR (Flash CC). I've created a login button that is connected to a function, and based on a set of conditions it will take you to a diffe