Opened 8 years ago
Closed 8 years ago
#4876 closed defect (fixed)
Can not copy journal enty to clipboard
Reported by: | SAMdroid | Owned by: | |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Sugar | Version: | Git as of bugdate |
Severity: | Unspecified | Keywords: | patch |
Cc: | Distribution/OS: | Fedora | |
Bug Status: | Unconfirmed |
Description
Attempting to copy a journal entry to the clipboard fails.
This happens when the journal entry sends the path (TempFilePath) and it is attempted to be copped. However, for some reason a path is send twice and they are both different. When the clipboard attempts to copy the first path, it has already been garbage collected.
Shell Log:
1436409402.587823 DEBUG root: ClipboardTray._drag_drop_cb 1436409402.588044 DEBUG root: Clipboard.add_object: hash None 1436409402.591131 DEBUG root: ClipboardTray: 2 was added 1436409402.593958 DEBUG root: get_file asked for entry with id dbus.String(u'a27322da-1d12-4342-ba7a-8433f766ed7e', variant_level=1) 1436409402.596653 DEBUG root: TempFilePath created dbus.String(u'/home/sam/sb21/home/dotsugar/default/data/a27322da-1d12-4342-ba7a-8433f766ed7e_d9gT51.txt') 1436409402.597001 DEBUG root: TempFilePath deleted '/home/sam/sb21/home/dotsugar/default/data/98a59741-d2be-47a5-80b1-a3d55070d1cf_8PbGK4.txt' 1436409402.597108 DEBUG root: putting '/home/sam/sb21/home/dotsugar/default/data/a27322da-1d12-4342-ba7a-8433f766ed7e_d9gT51.txt' in selection 1436409402.597514 DEBUG root: get_file asked for entry with id dbus.String(u'a27322da-1d12-4342-ba7a-8433f766ed7e', variant_level=1) 1436409402.599647 DEBUG root: TempFilePath created dbus.String(u'/home/sam/sb21/home/dotsugar/default/data/a27322da-1d12-4342-ba7a-8433f766ed7e_UWHYFZ.txt') 1436409402.599911 DEBUG root: TempFilePath deleted '/home/sam/sb21/home/dotsugar/default/data/a27322da-1d12-4342-ba7a-8433f766ed7e_d9gT51.txt' 1436409402.600014 DEBUG root: putting '/home/sam/sb21/home/dotsugar/default/data/a27322da-1d12-4342-ba7a-8433f766ed7e_UWHYFZ.txt' in selection 1436409402.600244 DEBUG root: ClipboardTray: got data for target Gdk.Atom.intern("text/uri-list", False) 1436409402.600400 DEBUG root: ClipboardTray: adding type 'text/uri-list' 1436409402.600546 DEBUG root: Clipboard.add_object_format 1436409402.600655 DEBUG root: Added in-memory format of type text/uri-list. 1436409402.600888 DEBUG root: Choosing between ['text/uri-list']. 1436409402.601106 DEBUG root: Chose 'text/plain'! 1436409402.601345 DEBUG root: Choosing between ['text/uri-list']. 1436409402.601522 DEBUG root: Chose 'text/plain'! 1436409402.630632 DEBUG root: ClipboardTray: got data for target Gdk.Atom.intern("journal-object-id", False) 1436409402.631009 DEBUG root: ClipboardTray: adding type 'journal-object-id' 1436409402.631133 DEBUG root: Clipboard.add_object_format 1436409402.631246 DEBUG root: Added in-memory format of type journal-object-id. Traceback (most recent call last): File "/home/sam/sb21/build/out/install/lib/python2.7/site-packages/jarabe/frame/clipboardtray.py", line 169, in drag_drop_cb cb_service.set_object_percent(object_id, percent=100) File "/home/sam/sb21/build/out/install/lib/python2.7/site-packages/jarabe/frame/clipboard.py", line 121, in set_object_percent self._process_object(cb_object) File "/home/sam/sb21/build/out/install/lib/python2.7/site-packages/jarabe/frame/clipboard.py", line 129, in _process_object new_uri = self._copy_file(format_.get_data()) File "/home/sam/sb21/build/out/install/lib/python2.7/site-packages/jarabe/frame/clipboard.py", line 165, in _copy_file shutil.copyfile(path, new_file_path) File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: '/home/sam/sb21/home/dotsugar/default/data/a27322da-1d12-4342-ba7a-8433f766ed7e_d9gT51.txt'
Change History (2)
comment:1 Changed 8 years ago by SAMdroid
- Keywords patch added
comment:2 Changed 8 years ago by quozl
- Resolution set to fixed
- Status changed from new to closed
Is in 0.107.1
Note: See
TracTickets for help on using
tickets.
Patch https://github.com/sugarlabs/sugar/pull/597