chat.freenode.net #tryton log beginning Sun Nov 6 00:00:02 CET 2011 | ||
2011-11-06 16:10 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton | ||
2011-11-06 17:30 <hedayat> Hi! | ||
2011-11-06 17:31 <hedayat> I have problems with viewing image attachments in tryton | ||
2011-11-06 17:31 <hedayat> I can add image attachments, but when I try to open them in tryton | ||
2011-11-06 17:31 <hedayat> All the windows become disabled but nothing is opened | ||
2011-11-06 17:32 <hedayat> What is the problem? And which program tryton uses to open images? | ||
2011-11-06 17:46 <cedk> hedayat: Under which OS? | ||
2011-11-06 17:46 <hedayat> cedk: Linux | ||
2011-11-06 17:47 <cedk> hedayat: opening file is managed in "Options>File Actions" | ||
2011-11-06 17:49 <hedayat> cedk: hmmm so there is no problem with the command. It works when I run it manually | ||
2011-11-06 17:53 <cedk> hedayat: did you run the client from a terminal? | ||
2011-11-06 17:54 <hedayat> cedk: Yes, there are no error messages | ||
2011-11-06 17:55 <cedk> hedayat: which kind of image are you opening? | ||
2011-11-06 17:55 <hedayat> cedk: jpg image | ||
2011-11-06 17:57 <cedk> hedayat: this is strange | ||
2011-11-06 18:00 <hedayat> cedk: :( | ||
2011-11-06 18:00 <hedayat> cedk: I've also another problem, | ||
2011-11-06 18:01 <hedayat> cedk: in the attachment view window, there are 3 buttons: Select a file, Open, Save as... | ||
2011-11-06 18:01 <hedayat> cedk: it looks like that the "Open" button does the same thing as "Save as..."!! | ||
2011-11-06 18:01 <cedk> hedayat: it does if it doesn't know how to open it | ||
2011-11-06 18:02 <cedk> hedayat: so if the extension is not in the list of "File Actions" | ||
2011-11-06 18:03 <hedayat> cedk: Oops, let me check again... | ||
2011-11-06 18:03 <hedayat> cedk: well, jpg is not in my "File Actions" list at all! How can I add it?! | ||
2011-11-06 18:04 <hedayat> cedk: oh I think it should be in the administration menu... let me see | ||
2011-11-06 18:04 <cedk> hedayat: no it is a missing functionnality of the dialog box | ||
2011-11-06 18:04 <cedk> hedayat: you can edit the configuration file | ||
2011-11-06 18:05 <hedayat> cedk: aha... only PNG is listed by default | ||
2011-11-06 18:10 <cedk> hedayat: in the config file: ~/.config/x.y/tryton.conf | ||
2011-11-06 18:11 <cedk> hedayat: under the section client | ||
2011-11-06 18:11 <cedk> hedayat: you must set 'actions = {'txt': {0: '/usr/local/bin/libreoffice "%s"', 1: '/usr/local/bin/libreoffice -p "%s"'}, 'pdf': {0: '/usr/local/bin/epdfview "%s"', 1: ''}, 'csv': {0: '/usr/local/bin/libreoffice "%s"', 1: '/usr/local/bin/libreoffice -p "%s"'}, 'odt': {0: '/usr/local/bin/libreoffice "%s"', 1: '/usr/local/bin/libreoffice -p "%s"'}, 'png': {0: '/usr/local/bin/feh "%s"', 1: ''}}' | ||
2011-11-06 18:11 <cedk> hedayat: this is my values | ||
2011-11-06 18:12 <hedayat> cedk: :) Thanks! | ||
2011-11-06 18:12 <cedk> hedayat: but I guess you can understand the syntax and append 'jpeg' | ||
2011-11-06 18:12 <hedayat> cedk: Yes, sure. | ||
2011-11-06 18:13 <hedayat> cedk: I think it'd be great if you can integrate more types by default. Is there any policy for example to prefer PNG for images? | ||
2011-11-06 18:14 <cedk> hedayat: not really | ||
2011-11-06 18:14 <cedk> hedayat: but I would like to remove this and use something more generic like xdg-open | ||
2011-11-06 18:17 <hedayat> cedk: Yes, that would be better for linux | ||
2011-11-06 18:18 <cedk> hedayat: I will submit an issue | ||
2011-11-06 18:20 <hedayat> cedk: That'd be great. Is there anyway to tell it: open everything with xdg-open? | ||
2011-11-06 18:22 <cedk> hedayat: not yet | ||
2011-11-06 18:22 <cedk> hedayat: done https://bugs.tryton.org/issue2265 | ||
2011-11-06 18:28 <hedayat> cedk: But personally I'd prefer if Open doesn't act as Save as for unknown files. It is not expected. I ruined two files this way and I can't understand the logic | ||
2011-11-06 18:29 <cedk> hedayat: but we need to give a way to the user to get the file | ||
2011-11-06 18:31 <hedayat> cedk: Hmm... actually initially I just confused 'Open' with 'Select a file' and since it opened a dialog I thought that I'm doing right! | ||
2011-11-06 18:32 <hedayat> cedk: Maybe in this case it'd be better to show an error message since the user can get the file using Save as itself | ||
2011-11-06 18:33 <cedk> hedayat: but it is not always the case | ||
2011-11-06 18:33 <cedk> hedayat: with report by example | ||
2011-11-06 18:34 <cedk> hedayat: and I don't want to force user to install xdg | ||
2011-11-06 18:36 <hedayat> cedk: Sorry, I didn't get it. What is wrong with giving the user an error message when the file is not known in 'File Actions' list? And I didn't ask for forcing the user to install xdg | ||
2011-11-06 18:37 <hedayat> cedk: Just this: since the Save as option is always there, there is no reason to do the same in 'Open'... at least I think so | ||
2011-11-06 18:37 <hedayat> cedk: or maybe I'm missing a point | ||
2011-11-06 18:38 <cedk> hedayat: the method to open a file is generic, it is not only used on binary field but also when a report is retreived | ||
2011-11-06 18:38 <cedk> hedayat: so we always need a default method for the user to retreive the file | ||
2011-11-06 18:38 <hedayat> cedk: Aha! I got it :) | ||
2011-11-06 18:55 <hedayat> cedk: What is expected to happen if you double click on an attachment in the attachment list?! | ||
2011-11-06 18:56 <hedayat> cedk: Now, Open works but if I double click on an attachment.... | ||
2011-11-06 18:56 <hedayat> cedk: the same problem happens as before | ||
2011-11-06 18:57 <cedk> hedayat: what do you mean by double click on attachment? | ||
2011-11-06 18:59 <hedayat> cedk: I select a Party, then I click "Add an attachment button" which lists current attachments and let you add new ones, | ||
2011-11-06 18:59 <hedayat> cedk: I just double click on one of existing attachments in the list | ||
2011-11-06 19:00 <hedayat> cedk: the attachment list window is disappeared and the main window is disabled (or only the Party window) | ||
2011-11-06 19:03 <cedk> hedayat: normally teh popup should switch to form view | ||
2011-11-06 19:13 <hedayat> cedk: On my system, it doesn't. I should click on the form view button myself. | ||
2011-11-06 19:15 <cedk> hedayat: strange | ||
2011-11-06 19:15 <cedk> hedayat: fill an issue | ||
2011-11-06 19:16 <hedayat> cedk: OK, thanks | ||
2011-11-06 19:43 <hedayat> cedk: done: https://bugs.tryton.org/issue2266 | ||
2011-11-06 19:48 -!- hedayat(~hedayat@fedora/hedayatvk) has left #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!