You are not logged in.

#26 2011-03-27 00:51:24

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: obdevicemenu: Udisks pipe menu for Openbox

Looks like a very cool tool jnguyen, thanks smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#27 2011-03-27 04:19:11

zodmaner
Member
Registered: 2007-07-11
Posts: 653

Re: obdevicemenu: Udisks pipe menu for Openbox

Very nice little utility. Thank you. smile


Memento mori

Offline

#28 2011-03-27 19:26:40

gpunkt
Member
From: terminated.
Registered: 2010-05-17
Posts: 54

Re: obdevicemenu: Udisks pipe menu for Openbox

is there any possibility to find out why I can't mount my (internal, activated mounting of internal drives in the config) sdb1 drive with the menu?
my user (nils) is member of "disk wheel video audio optical storage users" and when i use dolphin (which is still left on my system), i get the error message:
org.freedesktop.UDisks.Error.
Authentication is required

so, i'm still not part of the group the disk belongs to (which is "disks") and therefore can't mount it? i need to set somewhere else something to get r/w access to the drive?

it's a bit offtopic but i thought it could be program related, too. so far: great little script smile

Offline

#29 2011-03-27 20:15:08

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

Thanks for all the feedback everyone smile

gpunkt wrote:

is there any possibility to find out why I can't mount my (internal, activated mounting of internal drives in the config) sdb1 drive with the menu?
my user (nils) is member of "disk wheel video audio optical storage users" and when i use dolphin (which is still left on my system), i get the error message:
org.freedesktop.UDisks.Error.
Authentication is required

so, i'm still not part of the group the disk belongs to (which is "disks") and therefore can't mount it? i need to set somewhere else something to get r/w access to the drive?

it's a bit offtopic but i thought it could be program related, too. so far: great little script smile

This looks like a policykit/consolekit problem. If it doesn't already exist, create the file "/etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla" with these contents:

[Local Users]
Identity=unix-group:storage
Action=org.freedesktop.udisks.*
ResultAny=yes
ResultInactive=no
ResultActive=yes

If your user is in "storage" group, then you should be able to use udisks as regular user now.

Sorry, I forgot to add this to the instructions. If you have a file manager installed (such as Thunar), it usually adds this file automatically. I've updated the first post in this thread with these instructions.

Last edited by jnguyen (2011-03-27 20:18:35)


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#30 2011-03-27 21:18:48

gpunkt
Member
From: terminated.
Registered: 2010-05-17
Posts: 54

Re: obdevicemenu: Udisks pipe menu for Openbox

I thought it might have to do something with policykit/consolekit as I'm checking the files just before I read this update here.
it seems like there  are no files in /etc/polkit-1/localauthority/50-local.d/
will try the solution you mentioned. thanks so far!

aunt edith says:

works.

thanks!

Last edited by gpunkt (2011-03-27 21:25:57)

Offline

#31 2011-03-29 12:06:45

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

@gpunkt: glad you got it fixed.

1.0.5 released with information on device size now displaying correctly.


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#32 2011-04-06 01:24:14

LungFungus
Member
From: PSU
Registered: 2011-03-13
Posts: 10

Re: obdevicemenu: Udisks pipe menu for Openbox

Devices does not appear as a menu entry, even after restart.

If I run obdevicemenu from cmdline, i seem to get proper output - xml that references my flash drive,

OpenBox 3.4.11.2
Freshly installed udisks
libnotify-send 0.7.1
dbus daemon 1.4.1


fortune -o

Offline

#33 2011-04-06 06:56:16

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

Hi LungFungus. Have you put this in "~/.config/openbox/menu.xml"?:

<menu id="devices" label="Devices" execute="/usr/bin/obdevicemenu" />

Last edited by jnguyen (2011-04-06 06:57:09)


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#34 2011-04-06 15:42:44

LungFungus
Member
From: PSU
Registered: 2011-03-13
Posts: 10

Re: obdevicemenu: Udisks pipe menu for Openbox

Thanks jnguyen,

Yes I do have that line in the menu.xml file. I've checked the spelling too, usually my first mistake.

...
</menu>
<menu id="devices" label="Devices" execute="/usr/bin/obdevicemenu" />
<menu id="apps-editors-menu" label="Editors">
...

Last edited by LungFungus (2011-04-06 15:50:26)


fortune -o

Offline

#35 2011-04-06 20:37:10

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

Try putting into the "root-menu" part of your menu.xml. This is roughly what mine looks like:

<?xml version="1.0" encoding="UTF-8"?>
<openbox_menu xmlns="http://openbox.org/3.4/menu">

<menu id="applications" label="Applications">
......
</menu>

<menu id="system" label="System">
......
</menu>

<menu id="root-menu" label="Menu">
  <separator label="Menu" />
  <menu id="applications"/>
  <menu id="system"/>
  <menu id="devices" label="Devices" execute="/usr/bin/obdevicemenu" />
  <separator />

  <item label="Shutdown">
  <action name="Execute">
  <command>sudo shutdown -h now</command>
  <prompt>Are you sure you want to shutdown?</prompt>
  </action>
  </item>
</menu>

If this doesn't fix it, maybe post up your whole menu.xml (pastebin if it's really long). I wouldn't really know how else to fix this though!


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#36 2011-04-06 21:19:15

LungFungus
Member
From: PSU
Registered: 2011-03-13
Posts: 10

Re: obdevicemenu: Udisks pipe menu for Openbox

thank you jnguyen!

I knew I was making a silly mistake somewhere, I didn't have it in the root menu. I misunderstood the layout of the xml file, and the importance of the root section.

works perfectly now, this is a really cool add-on for OBmenu


fortune -o

Offline

#37 2011-04-06 21:25:30

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

LungFungus wrote:

thank you jnguyen!

I knew I was making a silly mistake somewhere, I didn't have it in the root menu. I misunderstood the layout of the xml file, and the importance of the root section.

works perfectly now, this is a really cool add-on for OBmenu

No problem, glad you got it working!

Sorry, I forgot to specify in the instructions that it must go in the root menu section. I've now changed the first post in this thread to mention that smile


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#38 2011-04-15 12:41:35

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 598

Re: obdevicemenu: Udisks pipe menu for Openbox

@jnguyen,

Thanks!! - it just works..


"I exist" is the best myth I know..

Offline

#39 2011-04-17 11:06:14

ctarwater
Member
From: Geosynchronous Orbit
Registered: 2009-02-05
Posts: 297

Re: obdevicemenu: Udisks pipe menu for Openbox

Best solution I've run across for managing devices in Openbox and it works without any issues - thanks!


I'm married to an author.  This is shameless self-promotion.  www.backthatelfup.com

Offline

#40 2011-04-18 19:41:54

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

Thanks very much for the feedback student975 and ctarwater smile


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#41 2011-04-23 22:41:45

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

1.1.0 released. Watch out for the change in configuration file!!

1.1.1 released. Just a bit of code cleanup.

Last edited by jnguyen (2011-04-25 16:58:35)


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#42 2011-04-27 19:56:06

KLIM
Member
Registered: 2010-11-18
Posts: 33

Re: obdevicemenu: Udisks pipe menu for Openbox

nvm, just delete

Last edited by KLIM (2011-04-27 19:57:33)

Offline

#43 2011-05-03 17:27:03

iTwenty
Member
From: India
Registered: 2010-10-24
Posts: 63
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

Nifty utility...Many thanks.!


“Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover.” - Mark Twain

Offline

#44 2011-05-19 10:11:01

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

obdevicemenu 1.2.0 released. It now has support for /dev/mmcblk* devices such as SD cards.

There are numerous configuration file changes so remember to update them!


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#45 2011-05-23 20:43:56

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

obdevicemenu 1.3.0 released, based on the bashmount 1.2.0 code just released.

Bear in mind that I haven't used openbox for some time now (since around obdevicemenu 1.0.0 I think) so the script has only received a small amount of testing for each release. Please let me know if you notice any bugs.


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#46 2011-05-24 02:15:55

WorMzy
Forum Moderator
From: England
Registered: 2010-06-16
Posts: 4,882

Re: obdevicemenu: Udisks pipe menu for Openbox

This is a great little app/script/menu. Took me a while to figure out why my internal drives weren't showing up, but now that I've got it working, I'm very happy with it. Certainly beats installing >50MBs worth of packages (gvfs+deps) to have thunar do the exact same thing.

It'd be nice to have partitions numbering more than 10 displayed in the right order, but that seems to be a limitation of sort. (e.g. /dev/sdd[10-12] in my menu come before /dev/sdd2)

Thanks for your hard work. smile


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#47 2011-05-26 21:12:17

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

WorMzy wrote:

This is a great little app/script/menu. Took me a while to figure out why my internal drives weren't showing up, but now that I've got it working, I'm very happy with it. Certainly beats installing >50MBs worth of packages (gvfs+deps) to have thunar do the exact same thing.

Glad you are finding use for it smile

It'd be nice to have partitions numbering more than 10 displayed in the right order, but that seems to be a limitation of sort. (e.g. /dev/sdd[10-12] in my menu come before /dev/sdd2)

Hmm I never noticed this before as I don't have that many partitions roll

OK, based on your feedback I have released obdevicemenu 1.4.0 with a new configuration option called fancy_sort. This option is basically a big hack to get around a shortcoming of the sort command, which causes /dev/sdc11 to be shown in the menu before /dev/sdc2. This option deals with /dev/sd* and /dev/dm-* devices, but not /dev/mmcblk* devices as the sorting is not that simple. I have disabled this option by default.

Kudos to anyone who can implement it in a less hacky way than I did smile

Last edited by jnguyen (2011-05-26 21:24:51)


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#48 2011-05-27 01:39:10

WorMzy
Forum Moderator
From: England
Registered: 2010-06-16
Posts: 4,882

Re: obdevicemenu: Udisks pipe menu for Openbox

Works fine and looks great.

woox.png

No noticeable additional delay on my PC. smile

Thanks a lot. big_smile


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#49 2011-05-27 15:18:53

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: obdevicemenu: Udisks pipe menu for Openbox

WorMzy wrote:

Works fine and looks great.

No noticeable additional delay on my PC. smile

Thanks a lot. big_smile

Thanks very much for testing and for the screenshot smile I had no idea people used that many devices tongue


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#50 2011-05-28 13:09:52

greatant
Member
Registered: 2011-02-12
Posts: 28

Re: obdevicemenu: Udisks pipe menu for Openbox

This is a great script, thanks.

I've partly ported it to FVWM (Just the info menu left to do.) I'll post it here once I'm satisfied with it.

Offline

Board footer

Powered by FluxBB