Active Topics

 


Reply
Thread Tools
Posts: 82 | Thanked: 197 times | Joined on Jun 2010
#21
Originally Posted by CepiPerez View Post
Yep, that's weird. The binary uses exactly the same code as filebox.
What you get if you try openfile '/home/user/MyDocs/.images/Sketch/Face.jpg' in xterm?
Did you try another image?
I just get a new line, no errors or anything.
I tried another image and that one actually worked with desktop command widget.

But as far as shortcuts go, i still can't find any.
Are'nt they suppose to show up in the list for adding app shortcuts to the desktop?

Tnx alot btw for the assistance
 
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#22
@outdoors
Are you trying to run command as root. Do not.
 
Posts: 82 | Thanked: 197 times | Joined on Jun 2010
#23
Originally Posted by slender View Post
@outdoors
Are you trying to run command as root. Do not.
I did'nt.
When i typed it in i just get a new line ">"
no errors and no result.
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#24
Originally Posted by outdoors View Post
I did'nt.
When i typed it in i just get a new line ">"
no errors and no result.
That can happen if you have forgotten to complete the string. Like a forgotten citation mark.

What happens if you do:

Code:
`openfile '/home/user/MyDocs/.images/Sketch/Face.jpg'`
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums
 
Posts: 82 | Thanked: 197 times | Joined on Jun 2010
#25
Originally Posted by AlMehdi View Post
That can happen if you have forgotten to complete the string. Like a forgotten citation mark.

What happens if you do:

Code:
`openfile '/home/user/MyDocs/.images/Sketch/Face.jpg'`
You were spot on. I forgott the ' at the end.
Now it does open the pic from xterm.

But the problem of the actual .desktop shortcut still exist.
It does not show up in the list of desktop shortcuts or widgets.
(even tried rebooting)

My file is named img.desktop (no other extension like .txt)
It is placed at: usr/share/applications/hildon

This is its content:
[Desktop Entry]
Encoding=UTF-8
Version=0.13
Type=Application
Name=Image
Exec=openfile '/home/user/MyDocs/.images/Sketch/Face.jpg'
Icon=general_image
 
Posts: 1,096 | Thanked: 760 times | Joined on Dec 2008
#26
Originally Posted by outdoors View Post
You were spot on. I forgott the ' at the end.
Now it does open the pic from xterm.

But the problem of the actual .desktop shortcut still exist.
It does not show up in the list of desktop shortcuts or widgets.
(even tried rebooting)

My file is named img.desktop (no other extension like .txt)
It is placed at: usr/share/applications/hildon

This is its content:
[Desktop Entry]
Encoding=UTF-8
Version=0.13
Type=Application
Name=Image
Exec=openfile '/home/user/MyDocs/.images/Sketch/Face.jpg'
Icon=general_image
what dkid you use to create the file? the default file manager hides the extensions, you should do a ls -la in xterm in that directory to make sure on the name and permissions
 
Posts: 82 | Thanked: 197 times | Joined on Jun 2010
#27
i just used notepad on my pc. saved as utf 8. changed .txt to .desktop. then moved it to my phone. i have no idea on how to create it any other way.
 
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#28
Originally Posted by outdoors View Post
i just used notepad on my pc. saved as utf 8. changed .txt to .desktop. then moved it to my phone. i have no idea on how to create it any other way.
You could download leafpad on the n900.. it pretty much are the same as notepad. It might get a permission problem if you send it from your computer to the n900.

What do this give you?
Code:
ls -la /usr/bin/openfile
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums

Last edited by AlMehdi; 2010-09-29 at 10:28.
 
Posts: 82 | Thanked: 197 times | Joined on Jun 2010
#29
Originally Posted by AlMehdi View Post
You could download leafpad on the n900.. it pretty much are the same as notepad. It might get a permission problem if you send it from your computer to the n900.

What do this give you?
Code:
ls -la /usr/bin/openfile
i will try leafpad to se if that works.

with ls -la i get
-rwxr-xr-x 1 root root
 
CepiPerez's Avatar
Posts: 1,023 | Thanked: 4,421 times | Joined on Feb 2010 @ Argentina
#30
Another way to be sure it will work is using an existing .desktop as base
Try opening x-term and type

sudo gainroot
cd /usr/share/applications
cp image-viewer.desktop image.desktop
leafpad image.desktop

Then edit the file and remove all you don't need (comment, mime and all x-.... entries)
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:01.