Active Topics

 



Notices


Reply
Thread Tools
Posts: 70 | Thanked: 6 times | Joined on Oct 2009
#1
i need root rights in emelfm2 (optified version)

i tried to type sudo gainroot in the command line. output -> root shell enabled.

but i dont have root rights :-(

i also started emelfm2 via xterm : xterm - sudo gainroot - emelfm2.

now i have root rights


how can i made my emelfm2 sudo gainrooted???
 
zwer's Avatar
Posts: 455 | Thanked: 782 times | Joined on Nov 2009 @ Netherlands
#2
Have you tried: echo emelfm2 | sudo gainroot
 

The Following 2 Users Say Thank You to zwer For This Useful Post:
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#3
different way to kill a cat, never realize you can do it that way, thanks, zwer.

I usually do it this way,
xterm
sudo gainroot
emelfm2

bun
 
zwer's Avatar
Posts: 455 | Thanked: 782 times | Joined on Nov 2009 @ Netherlands
#4
Yes, but I was under the impression that he wants to start it without starting the xterm. His problem is somewhat vague.
 
Posts: 70 | Thanked: 6 times | Joined on Oct 2009
#5
i want something like a desktop shortcut
 
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#6
Read here :http://talk.maemo.org/showthread.php?t=40698&page=2
Watch out what you modify
__________________
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#7
I would definitely not recommend editing the sudoers files.

Zwer's is the best method.. try it in a terminal that does not have root rights already:

Code:
echo emelfm2 | sudo gainroot
Or
echo emelfm2 | root
If that works you can build your own .desktop file with that in it and name it something like "root terminal".
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following User Says Thank You to fatalsaint For This Useful Post:
Posts: 70 | Thanked: 6 times | Joined on Oct 2009
#8
echo emelfm2 | sudo gainroot


works, but how can i make a desktop file?

i found this

desktop files are read from directory:

/usr/share/applications/hildon/

Example .desktop file for opening top in terminal:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true true = opens xterm window where the application is run / i think false is better???
Name=topx the name that appears to menu
Exec=/usr/bin/osso-xterm top the command that is executed when / ???????? dont know

icon is clicked
Icon= Icon for shortcut
#X-Window-Icon=timerwidget
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true Show app in toolbar
X-Osso-Type=application/x-executable



what is the name of the file? xxx.desktop??



i tried

[Desktop Entry]
Encoding=UTF-8
Name=emelFM2
GenericName=emelFM
Exec=/usr/bin/osso-xterm echo emelfm2 | sudo gainroot
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=emelFM2


saved as emelfm.desktop in udf-8 format.

i cant find the shortcut :-(

Last edited by no mercy; 2010-01-18 at 19:59.
 
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#9
This is perhaps, not a good idea.

On a number of times I have just tossed the N900 in my jacket pocket after using it to check the weather or something. It's easy to do if your in a hurry and I'm thinkin' others have done this as well.

More often than not, in the time it takes the screen to auto lock a bump, or even the act of putting it back in my pocket will hit a short-cut on one of the desktops. The next time I "wake" the thing up, I find a program running.

I can easily imagine that program being emelfm2 opening to the last directory I was working on, another bump or pocket swipe could select a group of files, and another one or two bumps could very well delete them.

Oh what joy that would bring.
__________________

SLN member # 009
 

The Following User Says Thank You to YoDude For This Useful Post:
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#10
Well as long as it's not on the desktop... It's not likely.
I've also tried to see what happens when you "just toss it" and I found out that the screen is only activated by a surface of a certain size, so full pocket cloth is not likely do do much harm even with emelfm2 open as it would either be in contact wit too much surface to react, or pressing more than one item at the time would not register.

Practicing ways of launching apps is a good exercise for anyone who wants to learn more and I've actually learnt quite a few interesting things by doing this
__________________
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:36.