forked from cris-b/oma-welcome
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create omdv-bug-report logs in the right place
- Loading branch information
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |