maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Can't see n900 system files... (https://talk.maemo.org/showthread.php?t=39773)

Bec 2010-01-18 14:51

Re: Can't see n900 system files...
 
is there another way to increase the usability of the default file manager?

fatalsaint 2010-01-18 17:26

Re: Can't see n900 system files...
 
Quote:

Originally Posted by Bec (Post 480027)
is there another way to increase the usability of the default file manager?

What do you mean? What are you trying to do with the default filemaner?

I think the default one should be fairly basic that accomodates most users. For the advanced stuff there is cli and emelfm2.

Did u ever get that running as root?

Bec 2010-01-18 17:42

Re: Can't see n900 system files...
 
Quote:

Originally Posted by fatalsaint (Post 480262)
What do you mean? What are you trying to do with the default filemaner?

I think the default one should be fairly basic that accomodates most users. For the advanced stuff there is cli and emelfm2.

Did u ever get that running as root?

I wondered if there was a way to make it more emelfm2 like. - haven't even thought runing it as root :confused:
I just supposed it wouldn't work...

fatalsaint 2010-01-18 18:01

Re: Can't see n900 system files...
 
Quote:

Originally Posted by Bec (Post 480287)
I wondered if there was a way to make it more emelfm2 like. - haven't even thought runing it as root :confused:
I just supposed it wouldn't work...

I mean emelfm2 as root. Why make the default more like emelfm2 when we have emelfm2? If you remove the basic one in favor of a more advanced setup than those that just want basic get left behind.

I think it's good to have two.

You were having problems launching emelfm2 as root.. I wanted to know if you succeeded. The best way to troubleshoot is to go back to basics and try it by hand first (running gainroot, then emelfm2 separately) - if that works then we troubleshoot the pipe command, if it doesn't then we have a problem with your rootsh.

Bec 2010-01-18 18:06

Re: Can't see n900 system files...
 
Quote:

Originally Posted by fatalsaint (Post 478646)
Well.. you used to be able to use "rootsh" to do such a thing but it was removed with the thought of security.
Then it turned out it didn't save anything.... because you can do:
Code:

echo emelfm2 | root

Quote:

Originally Posted by fatalsaint (Post 478823)
Instead of piping it to root pipe it to sudo gainroot instead:
Code:

echo emelfm2 | sudo gainroot

Both worked flawlessly out of an unrooted xterm

Quote:

Originally Posted by fatalsaint (Post 478823)
to also launch it as root in an icon like that. At least, that is what was said in another thread.

Code:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=echo emelfm2 | sudo gainroot
Exec=emelfm2
Icon=emelfm2
Type=Application

Unlike last time I tried emelfm2 did launch in both cases but without root privileges.
Maybe something should be added to the shortcut?

P.S. yes I removed the sudoer file and updated the sudoers before. Hope this helps :)

SubCore 2010-01-18 18:08

Re: Can't see n900 system files...
 
fixed it for ya:

Quote:

Originally Posted by Bec (Post 480337)
Code:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=emelfm2
Exec=echo emelfm2 | sudo gainroot
Icon=emelfm2
Type=Application



floffe 2010-01-18 18:09

Re: Can't see n900 system files...
 
Quote:

Originally Posted by Bec (Post 480337)
Code:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=echo emelfm2 | sudo gainroot
Exec=emelfm2
Icon=emelfm2
Type=Application

Unlike last time I tried emelfm2 did launch in both cases but without root privileges.
Maybe something should be added to the shortcut?

Switch around the Exec= and Name= lines. Exec is what's run, Name is what the menu etc shows.

fatalsaint 2010-01-18 18:11

Re: Can't see n900 system files...
 
That doesn't look right.. you want:

Code:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Rooted Terminal
Exec=echo emelfm2 | root
Icon=emelfm2
Type=Application

ETA: Wow.. that got answers fast.

Bec 2010-01-18 18:20

Re: Can't see n900 system files...
 
Quote:

Originally Posted by fatalsaint (Post 480329)
Why make the default more like emelfm2 when we have emelfm2?

Because I keep loosing my emelfm configuration and it drives me nuts, I don't know if all the config filer are here "/root/.config/emelfm2" but I always manage to screw them up and go back to those tiny two pannels.
Because sometimes when I config emelfm2 to my liking I keep loosing buttons, eg. where did my delete button go? I could swear I had one, now I only have trash which doesn't work.
Because the no "right click" literally kills me... so much could be done with a context menu while freeing pannel space aswell.
EDIT: and because emelfm2 doesn't fullscreen, any way to do that/launch it like that?
And because I'd like to replace the "basic - advanced" GPE file manager with the default one since GPE is un-configurable and looks so narrow & tiny & like looking through a keyhole.



echo emelfm2 | root <- app crashes just like before
echo emelfm2 | sudo gainroot <- same, it "thinks" for a while, then it grashes back to desktop.

For now the only valid solution seems adding it to sudoers.

fatalsaint 2010-01-18 18:24

Re: Can't see n900 system files...
 
create a root_emelfm2.sh file in /usr/bin:

Code:

cat > /usr/bin/root_emelfm2.sh << EOF
#!/bin/sh
echo emelfm2 | root
EOF
chmod 755 /usr/bin/root_emelfm2.sh

Then in your desktop file change the Exec line to read:

Code:

Exec=root_emelfm2.sh


All times are GMT. The time now is 12:20.

vBulletin® Version 3.8.8