1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

FileManager: Allow launching processes by activating an executable file.

This commit is contained in:
Andreas Kling 2019-03-01 14:57:42 +01:00
parent 1ab995bfff
commit 5f4245789d
4 changed files with 17 additions and 2 deletions

View file

@ -40,6 +40,7 @@ private:
uid_t gid { 0 };
ino_t inode { 0 };
bool is_directory() const { return S_ISDIR(mode); }
bool is_executable() const { return mode & S_IXUSR; }
};
const Entry& entry(int index) const
@ -59,4 +60,5 @@ private:
RetainPtr<GraphicsBitmap> m_file_icon;
RetainPtr<GraphicsBitmap> m_symlink_icon;
RetainPtr<GraphicsBitmap> m_socket_icon;
RetainPtr<GraphicsBitmap> m_executable_icon;
};