mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Linux: only eject through udisks2 when we have DBus
This commit is contained in:
parent
0790003d6d
commit
83e2d22a9a
1 changed files with 2 additions and 0 deletions
|
@ -778,9 +778,11 @@ void DownloadThread::_writeComplete()
|
|||
{
|
||||
eject_disk(_filename.constData());
|
||||
#ifdef Q_OS_LINUX
|
||||
#ifndef QT_NO_DBUS
|
||||
/* mountutils only implemented unmount and not eject on Linux. Do so through udisks2 */
|
||||
UDisks2Api udisks;
|
||||
udisks.ejectDrive(_filename);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue