|
Page 1 of 2 |
|
1
2
|
Next
Desktop Entry
Hi all,
so what I'm trying to do is to create an icon on the application menu that takes you to a website once it's launched (or to start a flash game in a saved directory). I've been trying this for the past 2 days and used different types of codes and still no use. Here's the latest I've done so far : PHP Code:
/home/opt/usr/Share/icons/hicolor/scalable/hildon Where I named the code file "cimb.desktop" and placed it in: /usr/share/applications/hildon This is the first time I make "Link" type of desktop entry. What exactly am I missing? Thanx in a advance, p/s: sorry if I posted this thread in the wrong section as I realized it too late. |
Re: Desktop Entry
Edit: Allright, see my post below, I checked it and this code does not work, I have no idea why. Old post:
Hi, change Quote:
Code:
[Desktop Entry]Code:
/usr/bin/browser --url=http://www.mobile.cimbclicks.com.my/Code:
Exec=/usr/bin/browser\ --url=http://www.mobile.cimbclicks.com.my/ |
Re: Desktop Entry
thanx a lot for the reply mate. I copied ur command in case i dun make mistakes. but i'm still not getting the menu shortcut. I tried restarting and still :(
|
Re: Desktop Entry
to make desktop icon do this.....
[Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Name=cimb Exec=/usr/bin/browser\ -- url=http://www.mobile.cimbclicks.com.my/ X-Osso-Type=application/x-executable Terminal=true Icon=cimb also icon must be put in.... usr/share/icon/hicolor/48x48/apps |
Re: Desktop Entry
Thanx Pusak, it worked and I got it on the application menu
http://i.imgur.com/2ZN3W.png Though there's still something wrong with the execution line as u can see from the picture the icon glows once pressed but nothing happens and keeps glowing :confused: |
Re: Desktop Entry
Ok, I also tried and made it now to work :P
Create a script somewhere, for test purposes let's assume it's in /opt/openwebsite.sh: Quote:
Don't forget to make it executable (chmod a+x /opt/openwebsite.sh). You must edit (or create) the script as root and also chmod command must me executed as root. And now I have a working shortcut (wtf? no need to "\" before space? I thought that's required?) Quote:
|
Re: Desktop Entry
U made it on ur phone? waw man I dun know wut's wrong here, I tried here using my phone but still nothing. Will try again through my laptop as soon as I get home and let u know :)
|
Re: Desktop Entry
Steps to debug:
0. install leafpad if you don't have it, it's great text editor ;) 1. open terminal 2. type "sudo gainroot" 3. type "leafpad /opt/openwebsite.sh" 4. write contents (or paste from here): Code:
#!/bin/sh6. type "chmod a+x /opt/openwebsite.sh" 7. close terminal 8. open new terminal (so that you are now user again, not root) 9. check if it works so far, type: Code:
/opt/openwebsite.sh "http://www.google.com10. If it worked correctly, close terminal again 11. open new terminal 12. type "sudo gainroot" to become root 13. type "leafpad /usr/share/applications/hildon/test.desktop" 14. type or copy and paste the contents of the file: Code:
[Desktop Entry]16. Close terminal 17. Open applications menu, find "Test app" icon. 18. Tap it, check if it works. If it doesn't - try replacing in test.desktop file Code:
/opt/openwebsite.sh "http://www.google.com"Code:
/opt/openwebsite.sh\ "http://www.google.com"19. If it worked, play with test.desktop file and modify it to suit your needs. It works on my phone ;) If it does not on yours, tell me how far did you go untill something failed ;) |
Re: Desktop Entry
Quote:
/usr/bin/browser_dbuscmd.sh load_url http://www.mobile.cimbclicks.com.my/ put the line in the exec on the cimb.desktop.... |
Re: Desktop Entry
Quote:
Thanx to u guys too and your posts, I believe there're several ways of doing it. I appreciate your time :) |
| All times are GMT. The time now is 08:56. |
Page 1 of 2 |
|
1
2
|
Next
vBulletin® Version 3.8.8