[Shotwell] Send To (was Re: Debug output and sent to)
John Carlyle-Clarke
john at wormdrive.net
Wed Oct 5 21:16:19 UTC 2011
On 04/10/11 08:49, Andy Stevens wrote:
> Are you sure the $PATH is the same when run by shotwell versus at the
> prompt? I.e. perhaps Thunderbird isn't being found - is it the same if
> you use the full path to Thunderbird?
> Alternatively, since nothing at all is output, maybe the "for" isn't
> finding any files. Try writing $@ and the current directory to the log
> outside the loop. Perhaps the filenames are relative and the cwd isn't
> what you think it is?
Finally got a chance to try this.
johncc at liberator:~/Documents/art_floppy$ more ~/bin/nautilus-sendto
#!/bin/bash
logfile=$(dirname "$0")/sendto.log
log() {
echo "$@" >> $logfile
}
log "-- $(date) \"$HOME\" \"$@\""
for file in "$@"; do
thunderbird -compose "attachment=$(readlink -f "$file")"
log " * Processing: $file"
done
Still nothing written to the log by Shotwell. I even created a proxy in
/usr/bin/nautilus-sendto that exec'd my one in case it was the location
that was causing a problem. I tested both the above and the proxy
directly and they worked as expected.
Very odd!
Here's some strace, in case it gives any clues...
futex(0x345d724, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x345d720, {FUTEX_OP_SET,
0, FUTEX_OP_CMP_GT, 1}) = 1
futex(0x3463e20, FUTEX_WAKE_PRIVATE, 1) = 1
read(3, 0x290ffb4, 4096) = -1 EAGAIN (Resource
temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {951625, 48113415}) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=12,
events=POLLIN}], 3, 0) = 0 (Timeout)
read(3, 0x290ffb4, 4096) = -1 EAGAIN (Resource
temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {951625, 48243587}) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=12,
events=POLLIN}], 3, 0) = 0 (Timeout)
inotify_add_watch(12, "/home/johncc/Pictures/2011/03/16",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 83
close(17) = 0
clock_gettime(CLOCK_MONOTONIC, {951625, 50145321}) = 0
clock_gettime(CLOCK_MONOTONIC, {951625, 50223815}) = 0
write(10, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x2a89248, FUTEX_WAKE_PRIVATE, 1) = 1
write(7, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x29f62d8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x29d21a0, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_MONOTONIC, {951625, 52977815}) = 0
futex(0x29d6080, FUTEX_WAKE_PRIVATE, 1) = 1
write(10, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x2a89248, FUTEX_WAKE_PRIVATE, 1) = 1
write(7, "\1\0\0\0\0\0\0\0", 8) = 8
futex(0x29f62d8, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x29d21a0, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_MONOTONIC, {951625, 54068076}) = 0
futex(0x29d6080, FUTEX_WAKE_PRIVATE, 1) = 1
access("/home/johncc/bin/nautilus-sendto", X_OK) = 0
getuid() = 1000
stat("/home/johncc/bin/nautilus-sendto", {st_mode=S_IFREG|0755,
st_size=241, ...}) = 0
brk(0x6c3e000) = 0x6c3e000
open("/usr/share/shotwell/ui/tag_sidebar_context.ui", O_RDONLY) = 17
fstat(17, {st_mode=S_IFREG|0644, st_size=123, ...}) = 0
read(17, "<ui>\n <popup name=\"SidebarTag"..., 123) = 123
close(17) = 0
brk(0x6c5f000) = 0x6c5f000
futex(0x7ffc2f98b888, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource
temporarily unavailable)
futex(0x7ffc2f98b888, FUTEX_WAKE_PRIVATE, 1) = 0
brk(0x6c80000) = 0x6c80000
futex(0x7ffc2f98b888, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7ffc2f98b888, FUTEX_WAKE_PRIVATE, 1) = 0
brk(0x6ca1000) = 0x6ca1000
open("/etc/udev/udev.conf", O_RDONLY|O_CLOEXEC) = 17
fstat(17, {st_mode=S_IFREG|0644, st_size=218, ...}) = 0
More information about the Shotwell-list
mailing list