From f1e080cb5090ea52eddcb1c85185e719582a137b Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Mon, 1 Aug 2022 20:43:45 -0700 Subject: [PATCH 1/1] Fixed bug in setbg --- bin/.vscode/launch.json | 16 ++++++++++++++++ bin/setbg | 8 ++++---- etc/cleantmp.conf | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 bin/.vscode/launch.json diff --git a/bin/.vscode/launch.json b/bin/.vscode/launch.json new file mode 100644 index 0000000..911f1e4 --- /dev/null +++ b/bin/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "perl", + "request": "launch", + "name": "Debug", + "program": "${workspaceFolder}/${relativeFile}", + "stopOnEntry": true, + "reloadModules": true + } + ] +} \ No newline at end of file diff --git a/bin/setbg b/bin/setbg index a1f71d1..ffcefda 100755 --- a/bin/setbg +++ b/bin/setbg @@ -105,7 +105,7 @@ my %opts = ( my %totals; -sub displayStats () { +sub displayStats() { my $statsFile = Logger->new( name => ".$FindBin::Script.stats", path => $ENV{HOME}, @@ -125,7 +125,7 @@ sub displayStats () { return; } # displayStats -sub fillPictures () { +sub fillPictures($signame = undef) { my @images; $totals{bgdirs} = 0; @@ -162,7 +162,7 @@ sub writeHistory($msg) { close $hist; } # writeHistory -sub writeSetBG ($filename, $image) { +sub writeSetBG($filename, $image) { open my $file, '>', $filename or error "Unable to open $filename for writing - $!", 1; @@ -183,7 +183,7 @@ sub updateSetBG($bgimage, $lockimage) { return; } # updateSetBG -sub SwitchWallPaper { +sub SwitchWallPaper($saigname) { # We don't need to do anything here, just handle the interrupt and # let the while loop continue. debug 'SwitchWallPaper: Interrupt received'; diff --git a/etc/cleantmp.conf b/etc/cleantmp.conf index 3aa3f62..92c2904 100644 --- a/etc/cleantmp.conf +++ b/etc/cleantmp.conf @@ -27,7 +27,7 @@ snap.* ssh-.* config-err.* Temp-* -tmp* +tmp+ tracker-* SWT-* grilo-plugin-cache* -- 2.17.1