Skip to content
WJunction - Webmaster Forum

Desktop Image Uploader

Status
Not open for further replies.

58 comments

ok @.mac Ill whip something up in a hour or so, not sure but can you set file assosiations from command line in mac?

@Hyperz ok, thought it would be easier
Heres what I want you to do.
cd ~/.gnome2/nautilus-scripts
- ls (see if there is a "Image Upload" script and its executable)
export NAUTILUS_SCRIPT_SELECTED_FILE_PATHS=(Full path to a image)
./Image Upload

tell me if you get mono errors etc.
 
yes which file opens, or if I can add scripts into the right click menu. I want to give peoople the option to open a image file (not the default option) with the Image Uploader
 
Ok Ill see what I can dig up on mac file type assosiations myself.

[EDIT] FYI the screenshot functionality in linux can be called by something like this:

mono Im4ge-dt.exe screenshot
or
~/.gnome2/bin/Im4ge-dt.exe screenshot

Hotkey support comming real soon, just got to figure out how ill do it on *nix
 
ok @.mac Ill whip something up in a hour or so, not sure but can you set file assosiations from command line in mac?

@Hyperz ok, thought it would be easier
Heres what I want you to do.
cd ~/.gnome2/nautilus-scripts
- ls (see if there is a "Image Upload" script and its executable)
export NAUTILUS_SCRIPT_SELECTED_FILE_PATHS=(Full path to a image)
./Image Upload

tell me if you get mono errors etc.

I got this:
Code:
hyperz@ubuntu:~/.gnome2/nautilus-scripts$ export NAUTILUS_SCRIPT_SELECTED_FILE_PATHS=/home/hyperz/Documents/openarena-0.8.1/openarena128.png
hyperz@ubuntu:~/.gnome2/nautilus-scripts$ ./Upload\ Image 
bash: ./Upload Image: /bin/sh^M: bad interpreter: No such file or directory
I hate bash :(. Why not use python?
Replaced the file with this and it works now:

Code:
#!/usr/bin/python

import os
import sys

os.system("echo 'starting' > ~/.gnome2/bin/upload-log.txt")

def send_images(images):
    quoted = ''
    
    for img in images:
        quoted += ' "%s"' % (img)
    
    os.system("mono ~/.gnome2/bin/Im4ge-dt.exe " + quoted + " > ~/.gnome2/bin/upload-log.txt")

send_images(sys.argv[1:])
 
Ill test the new update now btw, Hyperz if you can give it a shot I would apreciate.

FYI dont bother updating if you are on windows, it does not affect you. Next version will have a automatic updater too.
 
Personally I think you should split the program in 2 if you're serious about *.nix support and make a windows and linux build (preprocessor directives ftw). I've done various private projects and it really helps with compatibility issues you might encounter in the future. Also there is no way to uninstall it atm unless you do it by hand. Maybe you could look at making a *.run file/installer and/or create a uninstall.sh script somewhere? Just a suggestion.

I'll do another test tonight with the new version.
 
Works on linux (gnome), though not 100% perfected yet. I have been alerted to a vista/w7 bug that occurs sometimes, just results in the ctrl+print screen not working, will be fixed when I install w7 soon :P maybe tomorrow ill do that
 
Status
Not open for further replies.

About the author

S
Active Member · Joined
2,474
Messages
240
Reactions
63
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom