Changeset View
Changeset View
Standalone View
Standalone View
runners/bookmarks/browsers/firefox.cpp
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Line(s) | 172 | if (m_dbFile.isEmpty() || !QFile::exists(m_dbFile)) { | |||
---|---|---|---|---|---|
194 | } | 194 | } | ||
195 | 195 | | |||
196 | if (profilePath.isEmpty()) { | 196 | if (profilePath.isEmpty()) { | ||
197 | qCWarning(RUNNER_BOOKMARKS) << "No default firefox profile found"; | 197 | qCWarning(RUNNER_BOOKMARKS) << "No default firefox profile found"; | ||
198 | return; | 198 | return; | ||
199 | } | 199 | } | ||
200 | profilePath.prepend(QStringLiteral("%1/.mozilla/firefox/").arg(QDir::homePath())); | 200 | profilePath.prepend(QStringLiteral("%1/.mozilla/firefox/").arg(QDir::homePath())); | ||
201 | m_dbFile = profilePath + "/places.sqlite"; | 201 | m_dbFile = profilePath + "/places.sqlite"; | ||
202 | grp.writeEntry("dbfile", m_dbFile); | | |||
203 | m_dbFile_fav = profilePath + "/favicons.sqlite"; | 202 | m_dbFile_fav = profilePath + "/favicons.sqlite"; | ||
204 | } else { | 203 | } else { | ||
205 | auto dir = QDir(m_dbFile); | 204 | auto dir = QDir(m_dbFile); | ||
206 | if (dir.cdUp()) { | 205 | if (dir.cdUp()) { | ||
207 | QString profilePath = dir.absolutePath(); | 206 | QString profilePath = dir.absolutePath(); | ||
208 | m_dbFile_fav = profilePath + "/favicons.sqlite"; | 207 | m_dbFile_fav = profilePath + "/favicons.sqlite"; | ||
209 | } | 208 | } | ||
210 | } | 209 | } | ||
211 | } | 210 | } |