Skip to content

Commit

Permalink
Create omdv-bug-report logs in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
rugyada authored Jun 10, 2024
1 parent 7f130f0 commit f8d0f71
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions usr/share/oma-welcome/apps/om-bug-report.run
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash

cd ; kdesu omdv-bug-report
kdialog --title $"OpenMandriva" --msgbox $" bug-report.log has been created in your home directory"
. $(dirname $0)/helpers

install_if_needed omdv-bug-report

U=$(whoami)
[ -z "$U" ] && U="$USER"
[ -z "$U" ] && U="$(ls -ld ~ |cut -d' ' -f3)"

FILE="$(pkexec omdv-bug-report -u "$U" |grep '^Please include' |cut -d"'" -f2)"
kdialog --title $"OpenMandriva" --msgbox $"Report information has been saved as $FILE"

0 comments on commit f8d0f71

Please sign in to comment.