LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2018, 04:29 PM   #1
SrErwin
LQ Newbie
 
Registered: Dec 2018
Posts: 3

Rep: Reputation: Disabled
Launching an GUI app with udev rule after plugging in usb?


So Im trying to run gui app with udev but with 0 success,

I read somewhere that i have to find Xauthority file, and put display variable in scripts, Is this right, and if yes could someone write an example script?

Thank you in advance
 
Old 12-20-2018, 09:40 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You need to be a bit more precise. I do understand that you try to launch a program from a udev rule that puts something on the graphical desktop. Correct?

What exactly are you doing (share the udev rule, any script, any program, etc), and what happens (nothing at all, error message, wrong output, log entries etc)?

What is your environment - OS, GUI, ...?

Here is a question from somebody with a similar problem. It might solve yours. I found it by googling for udev gui.
 
Old 12-22-2018, 03:30 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by SrErwin View Post
So Im trying to run gui app with udev but with 0 success,

I read somewhere that i have to find Xauthority file, and put display variable in scripts, Is this right, and if yes could someone write an example script?
you are jumping from zero to 100 with no steps in between. that's potentially harmful.

so, let's start again:

Quote:
Originally Posted by SrErwin View Post
So Im trying to run gui app with udev but with 0 success
how exactly?
this is certainly possible, but has some snags.

Quote:
I read somewhere that i have to find Xauthority file, and put display variable in scripts, Is this right, and if yes could someone write an example script?
where? what exactly? in what context?

----

you should also tell us more about what you are actually trying to achieve here.
maybe a udev rule isn't the right way to go about it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching an GUI app with udev rule after plugging in usb? SrErwin Linux - Software 1 12-20-2018 04:38 PM
Launching an GUI app with udev rule after plugging in usb? SrErwin Linux - Kernel 1 12-20-2018 04:37 PM
no sound, no USB, no trackpad, no Wi-Fi (after plugging in a USB mouse and removing it) Sea_Penguin Linux - Newbie 3 07-20-2018 04:36 PM
UDEV: Unable to run a command line interface script after USB automount using udev mohamr2 Linux - Embedded & Single-board computer 8 08-16-2011 10:39 AM
[udev] load-modules.sh error when plugging in camera Meson Linux - Hardware 5 06-03-2010 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration