You are not logged in.

#1 2013-06-09 17:37:16

crazyg4merz
Member
Registered: 2013-04-14
Posts: 40

How to Know Which Package Own a Folder

As the title says, I want to find out which package made a folder in my home directory. It always show up again everytime I delete it, like immediately. This is the output of my ls ~/

Backups     Desktop    Downloads  Fg[?  Music     Public   Templates  Videos
ChartNexus  Documents  Dropbox    Mail  Pictures  SPSSInc  tmp

The folder I mean:
Fg[?
The folder is empty though and I don't find any problem it does to my laptop. But I just found it annoying. It shown in a strange unicode on my File Manager (Thunar). Hope someone can help me. I'll post anything if needed here to solve this problem. And my packages are all updated everyday and I don't find any fix yet from the package who did this. It's like already a week since I encounter it. Thanks smile

Offline

#2 2013-06-09 17:38:20

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: How to Know Which Package Own a Folder

No package should own a file/folder in $HOME I believe.  To answer your question:

pacman -Qo /path/to/file

Last edited by graysky (2013-06-09 17:38:49)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2013-06-09 17:46:13

crazyg4merz
Member
Registered: 2013-04-14
Posts: 40

Re: How to Know Which Package Own a Folder

graysky wrote:

No package should own a file/folder in $HOME I believe.  To answer your question:

pacman -Qo /path/to/file

Yeah it shows no package owns that folder. So how does that folder appears? How can I find the log of the making of that folder?
I tried

dmesg | grep Fg

and found nothing.

Offline

#4 2013-06-09 18:16:42

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How to Know Which Package Own a Folder

I think xdg-user-dirs can create some of them.

Offline

#5 2013-06-09 18:18:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How to Know Which Package Own a Folder

It's likely something broken in one of your shell initialization files. Pastebin them.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2013-06-09 18:24:51

crazyg4merz
Member
Registered: 2013-04-14
Posts: 40

Re: How to Know Which Package Own a Folder

lucke wrote:

I think xdg-user-dirs can create some of them.

I don't think so, because there wasn't any update from xdg-user-dirs for a long time and I don't see anything like that in my ~/.config/user-dirs.dirs. That folder is shown in some strange unicode like a Fg and a box which has 0 0 7 F in the box.

Offline

#7 2013-06-09 18:26:14

crazyg4merz
Member
Registered: 2013-04-14
Posts: 40

Re: How to Know Which Package Own a Folder

jasonwryan wrote:

It's likely something broken in one of your shell initialization files. Pastebin them.

What is shell initialization and how to submit it? Forgive my newbieness smile

Offline

#8 2013-06-09 18:58:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: How to Know Which Package Own a Folder

lucke wrote:

I think xdg-user-dirs can create some of them.

I don't see anything in the PKGBUILD creating a file that the package owns: https://projects.archlinux.org/svntogit … -user-dirs
Doing so violates packaging standards: https://wiki.archlinux.org/index.php/Ar … pkg_duties


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2013-06-09 18:59:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How to Know Which Package Own a Folder

Your .bashrc and .bash_profile, probably. Where you set your shell prompt and environment variables.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2013-06-09 19:38:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: How to Know Which Package Own a Folder

Also, has this been happening for a while?  Was it happening before your last reboot, or is it within a single session?  If the latter, what is the output of `ps -au`


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2013-06-09 19:40:22

crazyg4merz
Member
Registered: 2013-04-14
Posts: 40

Re: How to Know Which Package Own a Folder

jasonwryan wrote:

Your .bashrc and .bash_profile, probably. Where you set your shell prompt and environment variables.

I'm using zsh with Oh-My-Zsh configs. Moved the zshrc to my /etc/zsh/zshrc and the configs path to /etc/zsh/.oh-my-zsh. But that was a long time ago and I never updated the configs from git. This is my pastebin of /etc/zsh/zshrc. Hope u can help me solve it smile

Trilby wrote:

Also, has this been happening for a while?  Was it happening before your last reboot, or is it within a single session?  If the latter, what is the output of `ps -au`

Happening for a week or more, Happens every reboot and when I delete it, it will recreate the folder immediately. This is the output of ps -au

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root       205  4.7  1.9 161472 19832 tty7     Ss+  00:18   6:50 /usr/bin/X -nolisten tcp 
budiman   7614  0.0  0.4  34944  4300 pts/0    Ss+  02:37   0:00 zsh
budiman  20295  1.5  0.3  32388  3620 pts/1    Ss   02:42   0:00 zsh
budiman  20311  0.0  0.1  12888  1376 pts/1    R+   02:42   0:00 ps -au

Last edited by crazyg4merz (2013-06-09 19:42:55)

Offline

#12 2013-06-09 19:47:35

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How to Know Which Package Own a Folder

graysky wrote:
lucke wrote:

I think xdg-user-dirs can create some of them.

I don't see anything in the PKGBUILD creating a file that the package owns: https://projects.archlinux.org/svntogit … -user-dirs
Doing so violates packaging standards: https://wiki.archlinux.org/index.php/Ar … pkg_duties

You install that package, you have Desktop, Music, etc. created on login.

Offline

#13 2013-06-09 20:26:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: How to Know Which Package Own a Folder

xdg-user-dirs only creates those directories when you run the xdg-user-dirs-update program.  But that is put into xinitrc.d, so if you source everything in that directory from your xinitrc, then you are (indirectly) creating those files at every startup of X.  But the directory in question is most defintely not part of xdg-user-dirs.

Either this is some program that is running "in the background" that constantly recreates that directory (not so likely), in which case we can try the blunter instrument of `ps -A` which would show it ... with lots of other stuff.  Or, more likely, it is something in your prompt or pre/post command functions.

Have you tried deleting the directory from a gui file manager?  Alternatively, do you have bash installed?  If so, can you try deleting it from bash (to exclude any zsh pre/post prompt issues).

Last edited by Trilby (2013-06-09 20:32:22)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2013-06-09 21:44:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: How to Know Which Package Own a Folder

lucke wrote:

You install that package, you have Desktop, Music, etc. created on login.

True enough but these are not owned by the package itself.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB