mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-26 00:19:13 +00:00
Fix open in folder on Linux
This commit is contained in:
parent
2a007bffb9
commit
519f11e81d
@ -1,5 +1,5 @@
|
||||
// Aseprite Base Library
|
||||
// Copyright (c) 2001-2013, 2015 David Capello
|
||||
// Copyright (c) 2001-2016 David Capello
|
||||
//
|
||||
// This file is released under the terms of the MIT license.
|
||||
// Read LICENSE.txt for more information.
|
||||
@ -121,8 +121,10 @@ bool open_folder(const std::string& _file)
|
||||
|
||||
#else
|
||||
|
||||
int ret;
|
||||
ret = std::system(("xdg-open \"" + file + "\"").c_str());
|
||||
if (!base::is_directory(file))
|
||||
file = base::get_file_path(file);
|
||||
|
||||
int ret = std::system(("xdg-open \"" + file + "\"").c_str());
|
||||
return (ret == 0);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user