1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-08-30 20:49:42 +00:00

Compare commits

..

No commits in common. "6b8f85e39a271ad12a5c0708a5ab162319db4a0f" and "a685524dd51138cd2f56b04b86ad08d860e74355" have entirely different histories.

3 changed files with 2 additions and 45 deletions

View File

@ -70,8 +70,7 @@ except ImportError:
from PyQt5.QtGui import QDesktopServices
from qtlib.util import getAppData
from core.util import executable_folder
from hscommon.plat import ISWINDOWS, ISOSX
import subprocess
from hscommon.plat import ISWINDOWS
def _open_url(url):
QDesktopServices.openUrl(QUrl(url))
@ -81,12 +80,7 @@ except ImportError:
QDesktopServices.openUrl(url)
def _reveal_path(path):
if ISWINDOWS:
subprocess.run(["explorer", "/select,", op.abspath(path)])
elif ISOSX:
subprocess.run(["open", "-R", op.abspath(path)])
else:
_open_path(op.dirname(str(path)))
_open_path(op.dirname(str(path)))
def _special_folder_path(special_folder, appname=None, portable=False):
if special_folder == SpecialFolder.Cache:

View File

@ -277,12 +277,6 @@ class DupeGuru(QObject):
"Wrong Locale",
msg,
)
# Load results on open if passed a .dupeguru file
if len(sys.argv) > 1:
results = sys.argv[1]
if results.endswith(".dupeguru"):
self.model.load_from(results)
self.recentResults.insertItem(results)
def clearPictureCacheTriggered(self):
title = tr("Clear Picture Cache")

View File

@ -184,24 +184,6 @@ Section "!Application" AppSec
Pop $R1
Pop $R0
; Set file association
ReadRegStr $1 HKCR ".dupeguru" ""
StrCmp $1 "" NoBackup ; is it empty
StrCmp $1 "${APPNAME}.File" NoBackup ; is it our own
WriteRegStr HKCR ".dupeguru" "backup_val" "$1" ; backup current value
NoBackup:
WriteRegStr HKCR ".dupeguru" "" "${APPNAME}.File" ; set our file association
ReadRegStr $0 HKCR "${APPNAME}.File" ""
StrCmp $0 "" 0 Skip
WriteRegStr HKCR "${APPNAME}.File" "" "${APPNAME} File"
WriteRegStr HKCR "${APPNAME}.File\shell" "" "open"
WriteRegStr HKCR "${APPNAME}.File\DefaultIcon" "" "$INSTDIR\${APPNAME}-win${BITS}.exe,0"
Skip:
WriteRegStr HKCR "${APPNAME}.File\shell\open\command" "" '"$INSTDIR\${APPNAME}-win${BITS}.exe" "%1"'
WriteRegStr HKCR "${APPNAME}.File\shell\edit" "" "Edit ${APPNAME} File"
WriteRegStr HKCR "${APPNAME}.File\shell\edit\command" "" '"$INSTDIR\${APPNAME}-win${BITS}.exe" "%1"'
; Uninstall Entry
WriteRegStr SHCTX "${UNINSTALLREG}" "DisplayName" "${APPNAME} ${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONPATCH}"
WriteRegStr SHCTX "${UNINSTALLREG}" "DisplayVersion" "${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONPATCH}"
@ -255,19 +237,6 @@ Section "Uninstall"
; Remove Install Folder if empty
RMDir "$INSTDIR"
ReadRegStr $1 HKCR ".dupeguru" ""
StrCmp $1 "${APPNAME}.File" 0 NotOwn ; only do this if we own it
ReadRegStr $1 HKCR ".dupeguru" "backup_val"
StrCmp $1 "" 0 Restore ; if backup="" then delete the whole key
DeleteRegKey HKCR ".dupeGuru"
Goto NotOwn
Restore:
WriteRegStr HKCR ".dupeguru" "" $1
DeleteRegValue HKCR ".dupeguru" "backup_val"
NotOwn:
DeleteRegKey HKCR "${APPNAME}.File" ;Delete key with association name settings
; Remove registry keys and vendor keys (if empty)
DeleteRegKey SHCTX "${BASEREGKEY}"
DeleteRegKey /ifempty SHCTX "${VENDORREGKEY}"