LinuxQuestions.org
Register a domain and help support LQ
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 02-23-2016, 06:43 AM   #1
adrish
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
Smile Different graphics in sudo mode


Hi, I am developing and application which needs usb-communication so I need to run the app as superuser but then the app becomes awful.

Is there any way to use usb-communication without running the app as superuser or a way that the graphics do not change???

thank you in advantage.

Last edited by adrish; 02-23-2016 at 06:45 AM.
 
Old 02-23-2016, 07:10 AM   #2
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,174

Rep: Reputation: 201Reputation: 201Reputation: 201
Welcome to Linux Questions!

To use USB for communications purposes you need to access system services reserved and accessible by root only. (Trying to arbitrate between users vying for the same physical I/O port would to be extremely messy and only one user could win. So... root only.)

(If I've got that wrong someone will correct me no doubt, but any time I’ve run Minicom on my netbook via a USB to RS232 serial converter, I've needed root access via sudo.)

The change in your graphics is interesting as it shouldn't happen at all! You're probably going to have to share some of your code so we can see exactly what's going on.

Play Bonny!

 
Old 02-23-2016, 08:42 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,110
Blog Entries: 10

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
USB serial? Then don't you just need to be part of the dialout group?
 
Old 02-23-2016, 09:16 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,174

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
USB serial? Then don't you just need to be part of the dialout group?
Sorry, no idea, I just needed to run a console on a Sun Enterprise box using my netbook. Would this help the Op? Does being in the dialout group allow you to reserve an I/O port?

I still think we'd need to see what he/she has done to get a better idea of the graphic problem though.

Play Bonny!

 
Old 02-23-2016, 10:11 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
When you use sudo you are effectively running the application as root. With that, settings for themes, icons, ..., are taken from the root account, not the users account. If you don't have the same theme set up for the root account this will of course cause the application to look different from applications that do not run as root.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"the system is running in low-graphics mode" ==> your screen,graphics card and input device setting could not be detected correctly.you will sachinmm Linux - Software 8 01-04-2016 01:28 AM
Why does monitor go out of sync in text mode but work ok in graphics mode? tjsgifan Linux - Hardware 6 09-27-2007 09:42 AM
Changing FC6 a text mode installation to graphics mode. wbuik Fedora 2 06-19-2007 09:38 PM
Text mode to Graphics mode _Entropy__ Linux - Newbie 2 05-31-2007 08:14 AM
Booting in text mode versus graphics mode LChalupa Linux - Newbie 3 01-15-2005 08:53 PM


All times are GMT -5. The time now is 11:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration