Skip to content
  • Kwon-Young Choi's avatar
    Automatically mount directory after attaching loop device · 2714be04
    Kwon-Young Choi authored and Elvis Angelaccio's avatar Elvis Angelaccio committed
    After attaching a loop device, the device needs to be mounted on directory to
    be accessible. This can be done manually by clicking on the newly appeared
    device in dolphin side bar. This patch automatize this by automatically
    mounting the loop device to a directory using Solid after attaching the loop
    device.
    
    The way this is done a little bit hacky since the plugin needs to wait for UDisks2 to send a signal to Solid to update its device database. The wait is done using a nested QEventLoop by waiting on Solid::DeviceNotifier::deviceAdded signal.
    
    BUG: 424413
    FIXED-IN: 20.11.80
    2714be04