Repository navigation
Conversation
|
The problem comes from Another solution would be: /// File: loadcanvas.cpp
Canvas::Handle
synfig::open_canvas_as(const FileSystem::Identifier &identifier,const String &as,String &errors,String &warnings)
{
String filename = FileSystem::fix_slashes(as);
// Add these lines below:
if (!etl::is_absolute_path(filename))
filename = etl::absolute_path(filename);
but I was afraid that could break another stuff due to |
This can be resolved by using g_path_is_absolute (const gchar *file_name) instead of P.S. Glib::path_is_absolute(const std::string& filename) in case of glibmm |
Issue: 1. User launches a file via Synfig Studio from command line with a relative path (examples: $ synfig-studio mydir/myfile.sif or $ synfig-studio myfile.sif ) 2. Synfig Studio opens and loads the file normally (as always) 3. User opens Render dialog. 4. The filename entry text points to home dir + relative path! (examples: /home/user/mydir/myfile.sif // Problem: does mydir exist? or /home/user/myfile.sif // It may be ok, but shouldn't it point to same folder of sif file? )
c239ed7 to
6d6399c
Compare
|
@rodolforg |
|
Neither do I. How was it fixed? Mistery? :D |
I think it maybe was fixed after switching to |
|
Right now I can't test on 1.4.x though... Does it work there? |
|
Closed as it works fine on master branch. |
Issue:
User launches a file via Synfig Studio from command line with a relative path
(examples:
$ synfigstudio mydir/myfile.sifor
$ synfigstudio myfile.sif)
Synfig Studio opens and loads the file normally (as always)
User opens Render dialog.
The filename entry text points to home dir + relative path!
(examples:
/home/user/mydir/myfile.sif // Problem: does mydir exist?
or
/home/user/myfile.sif // It may be ok, but shouldn't it point to same folder of sif file?
)