feat: add property "LastLaunchedTime"
1. reactor some utils implementation. 2. remove constexpr before `decltype(auto)` due to GCC bug. refer: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102229 Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
		@ -33,7 +33,7 @@ bool SystemdSignalDispatcher::connectToSignals() noexcept
 | 
			
		||||
 | 
			
		||||
void SystemdSignalDispatcher::onUnitNew(QString unitName, QDBusObjectPath systemdUnitPath)
 | 
			
		||||
{
 | 
			
		||||
    constexpr decltype(auto) appPrefix = u8"app-";
 | 
			
		||||
    decltype(auto) appPrefix = u8"app-";
 | 
			
		||||
    if (!unitName.startsWith(appPrefix)) {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
@ -43,7 +43,7 @@ void SystemdSignalDispatcher::onUnitNew(QString unitName, QDBusObjectPath system
 | 
			
		||||
 | 
			
		||||
void SystemdSignalDispatcher::onUnitRemoved(QString unitName, QDBusObjectPath systemdUnitPath)
 | 
			
		||||
{
 | 
			
		||||
    constexpr decltype(auto) appPrefix = u8"app-";
 | 
			
		||||
    decltype(auto) appPrefix = u8"app-";
 | 
			
		||||
    if (!unitName.startsWith(appPrefix)) {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user