jceb / dex

DesktopEntry Execution
Other
427 stars 33 forks source link

Symlinks are not inhibited #11

Closed seblu closed 12 years ago

seblu commented 12 years ago

Since we have this feature https://github.com/jceb/dex/issues/6 implemented empty files overwrite is allowed.

As suggested by systemd (man 5 tmpfiles.d), i tried this:

If the administrator wants to disable a configuration file supplied by the vendor the recommended way is to place a symlink to /dev/null in /etc/tmpfiles.d/ bearing the same file name.

So i tried this for desktop file too. lrwxrwxrwx 1 seblu sebgp 9 2012-08-19 20:20 polkit-gnome-authentication-agent-1.desktop -> /dev/null

$ dex -ad -e Awesome Executing command: /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

As you can see, symlink to empty files doesn't work correctly.