Active Topics

 


Reply
Thread Tools
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#1
hey there , i have .desktop file and i have to move it in /usr/share/applicaations/hildon/

but every time i try it says path has non-directory component .

what i am doing is .

cp MyDocs/desktop_lock.desktop /usr/share/applications/hildon/

what should i do ?
 
ejasmudar's Avatar
Posts: 800 | Thanked: 957 times | Joined on Sep 2010 @ India
#2
Hmm, i am no expert but a few points crop up in my mind:
a. Did u become root before doing this?
b. are you in /home/user/ folder? Else you will have to do cd /home/user/MyDocs/.....
__________________
My Device History:Nokia 3510 > SE T230 > Nokia 6600 > HP2210 > SE p910i > SE p990i > N95 > I-mate 9502 > itouch > Nokia N900 > ? N9
My apps for N900:
Conversation Modder

My apps for N9:
LockScreenQuotes
USbS


If you feel I have helped you, don't forget to press Thanks!
 
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#3
yeah , before putting this command i do sudo gainroot and yeah the file is in MyDocs !

i tried with filebox terminal aswell .
 
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#4
become root through sudo gainroot,
Code:
cd /home/user/MyDocs
, then use
Code:
mv desktop_lock.desktop /usr/share/applications/hildon/
instead of
Code:
cp
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---
 

The Following User Says Thank You to Switch_ For This Useful Post:
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#5
Allright, from the top then:

Open leafpad from xterm using
Code:
leafpad
Create a .desktop file that looks like this:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=Lock
Exec=dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked"
Icon=general_locked
Once that is done click on the top bar, and go to "Save As" - name the file "lock.desktop" and where it asks for location (currently says "/") change that to your device (click on the "/" button then click on your device name on the next pop-up - this will be the root of MyDocs folder in your device)

Open a new terminal window and become root
Code:
root
mv /home/user/MyDocs/lock.desktop /usr/share/applications/hildon/
Next open the settings on your desktop and "Add Shortcut" - add the shortcut called "Lock" and press it for fullscreen lockery shenanigans. Enjoy.
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---

Last edited by Switch_; 2011-03-02 at 13:13.
 

The Following User Says Thank You to Switch_ For This Useful Post:
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#6
Originally Posted by Switch_ View Post
Allright, from the top then:

Create a .desktop file that looks like this:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=Lock
Exec=dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked"
Save it as lock.desktop

Copy this onto your phone using USB or alternatively create it natively and save it to your /MyDocs (default location).

Open a new terminal window and become root
Code:
root
mv /home/user/MyDocs/lock.desktop /usr/share/applications/hildon/
Next open the settings on your desktop and "Add Shortcut" - add the shortcut called "Lock" and press it for fullscreen lockery shenanigans. Enjoy.


ignore the msg reply here .
just let me know how to save the script in the file ?
i am having problem only with saving it in a file :$
else is easy .
can i save it using leafpad ?
 
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#7
Originally Posted by eefo View Post
ignore the msg reply here .
just let me know how to save the script in the file ?
i am having problem only with saving it in a file :$
else is easy .
can i save it using leafpad ?
See edit above - post amended with simpler instructions.
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---
 

The Following User Says Thank You to Switch_ For This Useful Post:
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#8
Originally Posted by Switch_ View Post
See edit above - post amended with simpler instructions.

lol
thanks
and yeah , you can post it in a new thread for noobs and i hope it will be useful for others as well :P
 
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#9
i have a shortcut now . but as you said , it didn't work for me either :$
did it work at your side ?
 
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#10
use the code
Code:
mv /ho<TAB>use<TAB>My<TAB>loc<TAB> /us<TAB>sha<TAB>appli<TAB>hildon/
TAB is found at the bottom left hand side of the terminal window and it autocompletes the names for you. with this you can't really go wrong. Befoer we go too much further, you did use copy-paste technology on the dbus script if nothing else, right? You didn't actually go to the lengths of handwrinting it all in? Before it all goes tits up again!
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---
 

The Following User Says Thank You to Switch_ For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:08.