diff --git a/src/org/kde/kdeconnect/UserInterface/SettingsFragment.kt b/src/org/kde/kdeconnect/UserInterface/SettingsFragment.kt index c594fa62..f7de7345 100644 --- a/src/org/kde/kdeconnect/UserInterface/SettingsFragment.kt +++ b/src/org/kde/kdeconnect/UserInterface/SettingsFragment.kt @@ -236,8 +236,7 @@ class SettingsFragment : PreferenceFragmentCompat() { ) { uri: Uri? -> val output = uri?.let { context?.contentResolver?.openOutputStream(uri) } ?: return@registerForActivityResult CoroutineScope(Dispatchers.IO).launch { - val pid = android.os.Process.myPid() - val process = Runtime.getRuntime().exec(arrayOf("logcat", "-d", "--pid=$pid")) + val process = Runtime.getRuntime().exec(arrayOf("logcat", "-d")) val reader = InputStreamReader(process.inputStream) output.use { it.write("KDE Connect ${BuildConfig.VERSION_NAME}\n".toByteArray(Charsets.UTF_8))