You are not logged in.
Hi all,
I have a weird issue - I recently bought a new computer and would like to get some of the old functionality back.
On the old laptop I was using Arch, Openbox and SpaceFM, and I was able to receive the popup notifications that inform me of device (i.e. USB) mounted and when it was unmounted and removed the notification said something along the lines "device xxx disappeared from system".
Now I am using a desktop with Arch, XFCE and Spacefm, and these notifications do not show. Only some do, such as network established (from wicd) and torrent finished (from Transmission).
I do not know how I had the notifications enabled in the past, but would like them back. I have looked at multiple threads on here as well as the wiki, but maybe I don't just see the right instruction. Can someone help?
Last edited by raavas (2016-02-15 14:58:55)
Offline
IIRC SpaceFM (and devmon) use zenity for notifications. But you haven't told if you use SpaceFM if you use other tools for mounting (such as thunar-volman)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
I am trying to limit the use of Thunar to the minimum. In fact, I'd like to uninstall it if it was easily possible. Thunar-volman is installed, as is zenity, but I am only really using SpaceFM for mounting.
Offline
I am now back to using Openbox, and found the same notification program that I used with the old computer (xfce4-notifyd). Now I would just have to get the mount notifications back in action somehow. Thunar and its supplements are gone. The only program for mounting is SpaceFM.
Offline
Ok, many months have passed and I tried to live without the notifications. I'd still like to have them back. I am at a loss here - why is it not working?
I am using Openbox and LightDM.
The following packages are installed as well as zenity:
local/inotify-tools 3.14-4
local/libevent 2.0.22-1
local/libnotify 0.7.6-2
local/notification-daemon 3.18.1-1
local/python2-inotifyx 0.2.2-2
local/python2-notify 0.1.1-13
local/python2-pyinotify 0.9.6-2
local/startup-notification 0.12-4
local/udev-notify-bzr 34-1
local/xfce4-notifyd 0.2.4-2 (xfce4-goodies)
I'm sure some of these must be redundant and possibly conflicting - can someone shed some light on this?
Offline
@raavas,
Report the problem upstream and see if the author has some suggestion:
https://github.com/IgnorantGuru/spacefm
Edit: Moving to "Applications and Desktop Environments".
Last edited by x33a (2016-02-15 12:14:30)
Offline
Finally, after a thorough perusal of the SpaceFM manual, I managed to find the answer. The mount notifications work now to a certain extent that is good enough for me. Thread marked as solved.
Thank you all who contributed.
Offline
@raavas, please share your solution so that it helps other people with similar problems.
Offline
Ok, the solution was to go to SpaceFM autorun settings and add the following (from SpaceFM manual):
Auto Run|On Mount
Auto Run|On Mount opens a dialog which allows you to set a command line to be run when a removable drive or optical data disc is auto-mounted by SpaceFM. This command can be as simple as a program name to be run, or can be a one line bash script. The following substitution variables may be used in the command line:
%v device (eg /dev/sda1)
%l device volume label
%m device mount point (eg /media/disk)
Note: When the command is run, %v, %l, and %m refer to the device being added or removed, not the device which is currently selected in the Devices list.
For this command to be run, the device must be auto-mounted by SpaceFM. It will not be run for devices mounted by other means, or for devices mounted by user action within SpaceFM.
The command will not be run for devices which are auto-mounted at SpaceFM's initial startup. Thus Auto Run affects devices you add after SpaceFM is running.
For additional information on what the volume monitor is doing, try running SpaceFM in a terminal. Information on devices being auto-mounted will be printed to the terminal, and error messages generated by your command may be seen there as well.
For example, to automatically add a mounted volume to traydevice, set the On Mount command line to:
traydevice %v
Another example: To have notify-send alert you of new drive mounts:
notify-send --icon=block-device --urgency=low "Volume %l has been mounted"The notify-send did the trick for me.
Offline