![]() |
[Solution] Create shortcut Harmattan
Hello maemers!
Looks like there is no easy noob-way to make a shortcut on the desktop on the Harmattan device as it is on n900. Like: 1. insert a command to run application or command like "ping" 2. insert a way to icon 3. put some line to write a geek words or commands 4. ???? 5. PROFIT Anybody here to handle this? Any one? Please? |
Re: [Request] Shortcut creator Harmattan
You can do it manually by making following text file:
Code:
[Desktop Entry] Then place it to /home/user/.local/share/applications |
Re: [Request] Shortcut creator Harmattan
Yes, this is what I was talking about! There is no noob way :)
Anyway, thanks, Mikkosssss. |
Re: [Request] Shortcut creator Harmattan
Quote:
|
Re: [Request] Shortcut creator Harmattan
Using scripts.
Code:
Exec=/home/user/execroot.sh /home/user/yourscript.sh Heres code for it: Code:
#!/bin/sh Code:
#!/bin/sh Code:
chmod +x /home/user/yourscript.sh Edit: Also scripts wont work In MyDocs-> So place them in /home/user/ |
Re: [Request] Shortcut creator Harmattan
you can launch script everywhere.
Code:
sh /home/user/MyDocs/shell-script.sh |
Re: [Request] Shortcut creator Harmattan
Even if its FAT32?
|
Re: [Request] Shortcut creator Harmattan
you dont understand. you not need to set executable to script. you can execute shell, or perl, or python, whatever with option reading and executing script command from file. its same what operating system does when executing your script file if it have executable flag and shebang line (#!/bin/sh i.e.).
for example: you have /home/user/MyDocs/script.sh Code:
#!/bin/sh Code:
sh /home/user/MyDocs/script.sh |
Re: [Request] Shortcut creator Harmattan
1 Attachment(s)
Are u sure that execroot.sh script is correct?
|
Re: [Request] Shortcut creator Harmattan
Quote:
But heres my that works everyday... Code:
#!/bin/sh |
Re: [Request] Shortcut creator Harmattan
I am.
Look on my screenshot please, it says "syntax error"... |
Re: [Request] Shortcut creator Harmattan
Quote:
To get root do: Code:
devel-su Code:
BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash) |
Re: [Request] Shortcut creator Harmattan
I could wip something up.. check out
TDSC (The.Desktop.Shortcut.Creator) it's based on python.. But due to my life issues(no computer..that's not all but... ) it might take at least a week to do so or less. But I will only under take the project if requested. let me know. |
Re: [Request] Shortcut creator Harmattan
Quote:
By the way this thing made me surprise too. Maybe this forum breaks something when you post the script on it or I copy it from it? There is one more thing to try... reboot my n9 :D |
Re: [Request] Shortcut creator Harmattan
btw chmod +x made by user don't return with any error.
But If I trying to run the script it shows syntax error. Copied your script from your post twice, didn't help. |
Re: [Request] Shortcut creator Harmattan
Yes right return is nothing when you chmod.
And heres right code sorry I remember it this late. :p Code:
chmod a+rx /home/user/scripts/execroot.sh |
Re: [Request] Shortcut creator Harmattan
Thanks bro, but I found what was wrong.
I remembered that Notepad on Windows add excess symbols to the file (or it appears in the file after you put it on Linux machine, don't know) so I checked the script with vi editor on the phone and yeah, it was full of ^M in the end of each line. Deleted it. And now it works. BTW, I did not made a chmod thing, it works without it too. |
Re: [Solution] Create shortcut Harmattan
What should be the size of ico.png?
I am using this 300x300 image http://imgim.com/keacs.png with the associated .sh file, the icon appears on desktop but when I tap on it, nothing else happens. I am just to execute a sh file without root privileges. |
Re: [Request] Shortcut creator Harmattan
Quote:
Then I added the line Code:
Terminal=true Note: I guess if you are going to run a .sh file probably it will run in terminal (busybox) so terminal=true, else terminal=false. The other thing I had to modify was the Exec line this way Code:
Exec=/bin/sh /home/user/myscript.sh Code:
I could not find /home/user/myscript.sh |
Re: [Solution] Create shortcut Harmattan
Quote:
https://dl.dropboxusercontent.com/u/...guidelines.jpg And the full specification: https://dl.dropboxusercontent.com/u/...Guidelines.pdf |
All times are GMT. The time now is 02:14. |
vBulletin® Version 3.8.8