![]() |
2010-05-13
, 21:37
|
Posts: 116 |
Thanked: 86 times |
Joined on Dec 2009
@ New Orleans, LA, USA
|
#2
|
![]() |
2010-05-13
, 21:39
|
Posts: 20 |
Thanked: 11 times |
Joined on Apr 2010
|
#3
|
How do you run anything as root? Run the app as the user root, or set the binary suid root. Or is there something more to this seemingly straightforward request that you forgot to include?
![]() |
2010-05-13
, 22:50
|
Posts: 20 |
Thanked: 11 times |
Joined on Apr 2010
|
#4
|
![]() |
2010-05-14
, 15:29
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#5
|
![]() |
2010-05-30
, 23:18
|
Posts: 20 |
Thanked: 11 times |
Joined on Apr 2010
|
#6
|
Running Qtcreator as root is plain bad. This will let it destroy anything and everything if you foul up your build scripts. Furthermore, all files generated by it will be owned by root but saved in places where you'd most likely want to play around as normal user.
So, NEVER run build tools as root!
![]() |
2010-05-31
, 06:37
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#7
|
You said what not to do but you didn't give me any workaround for my initial problem.
I'm trying to develop a bluetooth application for the n900 using Qt. However i'd like to test my app on my linux machine before porting it to maemo.
I'm using hci_write_class_of_dev(dd,0x200408,0); from the bluez library to make the device the application is running on identify itself as a bluetooth handsfree device. But this function needs root access so I can't debug my application because the call to this function will always fail.
Any Idea's on how I can solve this?
I'm using Qt creator on Kubuntu as my development environment.
Thanks in advance