diff options
-rw-r--r-- | src/firecfg/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/firecfg/main.c b/src/firecfg/main.c index 1e49a2fc7..0e520b0f1 100644 --- a/src/firecfg/main.c +++ b/src/firecfg/main.c | |||
@@ -486,8 +486,9 @@ int main(int argc, char **argv) { | |||
486 | if (arg_debug) | 486 | if (arg_debug) |
487 | printf("%s %d %d %d %d\n", user, getuid(), getgid(), geteuid(), getegid()); | 487 | printf("%s %d %d %d %d\n", user, getuid(), getgid(), geteuid(), getegid()); |
488 | 488 | ||
489 | // fix .desktop files in ~/.local/share/applications directory | 489 | // if runs as regular user, fix .desktop files in ~/.local/share/applications directory |
490 | fix_desktop_files(home); | 490 | if (getuid() != 0) |
491 | fix_desktop_files(home); | ||
491 | 492 | ||
492 | return 0; | 493 | return 0; |
493 | } | 494 | } |