Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-07-13 18:08:35

Uolop
Member
Registered: 2015-07-13
Posts: 2

Context menu - formatting USB - like in unity.

How to make context menu for removable media was a paragraph "formatting" like it implemented in unity?

Offline

#2 2015-07-13 19:14:57

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: Context menu - formatting USB - like in unity.

Don't know anything about Unity (or anything Ubu-), but you can make a context menu for removeable media using Thunar's Custom Actions. Details in the Xfce Docs:

http://docs.xfce.org/xfce/thunar/custom-actions


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#3 2015-07-13 20:08:22

Uolop
Member
Registered: 2015-07-13
Posts: 2

Re: Context menu - formatting USB - like in unity.

I know about it. But I do not understand how to implement it to a removable USB. Show how You will do it.

Offline

#4 2015-07-13 20:59:19

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: Context menu - formatting USB - like in unity.

What is it you want to do? For example.


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#5 2015-07-14 15:05:55

ungutknut
Member
Registered: 2014-04-12
Posts: 52

Re: Context menu - formatting USB - like in unity.

Jerry3904 wrote:

What is it you want to do? For example.

I guess Uolop wants a context-menu entry named for example "format selected media"

Like in Windows where you can format any disk directly via explorer context menu. This is a feature I really miss in thunar.

I wonder if such a thing is really doable with custom-actions... you need at least a GUI to select which file-system to use (on the other hand: just use the filesystem that was used before might to the job, IF the selected media already had a filesystem). And starting gparted (with root permissions) for such an easy task is overkill in my opinion.

Offline

#6 2015-07-14 15:36:15

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: Context menu - formatting USB - like in unity.

Ah, overlooked that.

Given some of the complicated commands on the Thunar Custom Action page, I would think that the technique described on this page, for instance, could be adapted. To get around the file-system selection thing, I would myself probably set up a couple of Custom Actions for my most common formatting fs choices (e.g., ext2, fat32).


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#7 2015-07-16 15:15:21

ungutknut
Member
Registered: 2014-04-12
Posts: 52

Re: Context menu - formatting USB - like in unity.

Jerry3904 wrote:

Given some of the complicated commands on the Thunar Custom Action page, I would think that the technique described on this page, for instance, could be adapted.

Someone responded to the link you posted with a python program that seems to do exactly what we (at least I) want to have:
https://github.com/wifiextender/usb2format

Creating a custom action to start it should be pretty straigth forward. Only downside seems that you have to select the device manually, I guess.

Jerry3904 wrote:

To get around the file-system selection thing, I would myself probably set up a couple of Custom Actions for my most common formatting fs choices (e.g., ext2, fat32).

Seems like a legit workaround. But would bloat the context menu with many rarely used entries.

Offline

#8 2015-07-16 15:55:03

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: Context menu - formatting USB - like in unity.

Thanks for finding that. I looked at the comments, but did not follow up that link.

Only downside seems that you have to select the device manually, I guess.

It seems to me there must be a way to avoid that since the user is right-clicking the device wanted.

But would bloat the context menu with many rarely used entries.

In my case, probably only 1, since I mostly format to ext2, which eliminates the use of this tool as it currently is I guess. From the readme:

select between "ntfs" or "fat" - fat 32

We may try to redo that for MX Linux...

Last edited by Jerry3904 (2015-07-16 16:00:19)


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

Board footer

Powered by FluxBB