Codebase list firetools / 30451d9
Drop patch applied upstream Reiner Herrmann 7 years ago
2 changed file(s) with 0 addition(s) and 28 deletion(s). Raw diff Collapse all Expand all
+0
-27
debian/patches/fix_username.patch less more
0 Author: Reiner Herrmann <reiner@reiner-h.de>
1 Description: Replace hardcoded username with user from USER environment variable
2 Forwarded: https://github.com/netblue30/firetools/pull/8
3
4 --- a/src/firemgr/mainwindow.cpp
5 +++ b/src/firemgr/mainwindow.cpp
6 @@ -30,6 +30,7 @@
7 #include "mainwindow.h"
8 #include "topwidget.h"
9 #include <QtGui>
10 +#include <cstdlib>
11
12 MainWindow::MainWindow(pid_t pid, QWidget *parent): QMainWindow(parent), pid_(pid) {
13 // check firejail installed
14 @@ -255,9 +256,11 @@
15 }
16
17 void MainWindow::handleHome() {
18 + const char* username = getenv("USER");
19 path_.clear();
20 path_.append(QString("home"));
21 - path_.append(QString("netblue"));
22 + if (username)
23 + path_.append(QString(username));
24 QString full_path = build_path();
25 print_files(full_path.toStdString().c_str());
26 QString txt = build_line();
+0
-1
debian/patches/series less more
0 fix_username.patch