thunar | Mirror repository , PRs are not watched , please use Xfce
kandi X-RAY | thunar Summary
kandi X-RAY | thunar Summary
Thunar is a modern file manager for the Xfce Desktop Environment. Thunar has been designed from the ground up to be fast and easy to use. Its user interface is clean and intuitive and does not include any confusing or useless options by default. Thunar starts up quickly and navigating through files and folders is fast and responsive.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of thunar
thunar Key Features
thunar Examples and Code Snippets
Community Discussions
Trending Discussions on thunar
QUESTION
- I use thunar as a file manager
- I want to use "custom actions" on certain files (Thunar --> Edit --> Configure Custom Actions...)
- the command I use is:
xfce4-terminal -e "md5sum '%F'" --hold
This works fine, except when the file path or file name contains a space. It just won't work as intended because the file can then not be found.
I think this is because the spaces in the file path are not automatically escaped
How do I solve this problem? Thank you in advance
...ANSWER
Answered 2022-Mar-29 at 21:31You can easily escape a character with by placing a \
in front of it.
QUESTION
I have implemented a Xdnd drop support implementation in VTK some time ago. It was working great except with Thunar file manager. All other file managers were working fine at the time. We dismissed this limitation a Thunar bug at the time.
The feature I implemented was very simple:
- Set the window of the application to be XdndAware
- Receive the position message and respond that we are ready to receive
- Receive the drop mesage and request a selection
- Receive the selection notify and recover the URI
- Convert the URI into something we can work with
Nothing fancy, I did not even touch the list type.
Fast forward a few years and now dolphin users cannot drop files correctly into our application. The URI is always the first file dropped since dolphin was started. Restarting our application has no effect. No bug at all with pcmanfm.
This is not a dolphin bug and files can be dropped on blender or firefox from dolphin without issues.
So there must be a bug in our implementation, but I've been staring at the code for some time and everything I tried had no effect, except for breaking Xdnd support completely.
Here are the interesting part of the implementation:
...ANSWER
Answered 2021-Jun-09 at 05:47From some testing, the issue is with the preparation and sending of the XdndFinished
ClientMessage
back to the drag and drop source when handling the SelectionNotify
event.
Instead of:
QUESTION
I'm using XMonad in combination with xmobar, and I'm having an issue with workspaces displayed on xmobar not being sorted numerically. Because workspace ID's are ultimately strings, they get sorted lexicographically. So, provided that I have 12 workspaces, they are sorted as 1 10 11 12 3 4 5 6 7 8 9
, instead of 1 2 3 4 5 6 7 8 9 10 11 12
. I think marshallPP
is the culprit because prior to introducing independent screens, the workspaces were displayed correctly without ppSort
. I know there is mkWsSort
that creates a sorting function from a comparison function, however, I'm not sure how would I write the comparison function. This is my config:
ANSWER
Answered 2020-Dec-09 at 22:45You can see that the type signature of mkWsSort
is X WorkspaceCompare -> X WorkspaceSort
. ppSort
needs a X WorkspaceSort
, so you just need to provide a X WorkspaceCompare
. WorkspaceCompare
is an alias for WorkspaceId -> WorkspaceId -> Ordering
, and WorkspaceId
is an alias for String
. So basically, this is just a long-winded path to say you need a string comparison function. You can make one that compares strings by trying to read them into Ints first, then comparing the two:
QUESTION
I want to write a short program, which triggers the Thumbnail creation for all pictures on my network share recursively (e.g. over night) - so that when I access a folder in Thunar, the thumbs are displayed immediately.
I would say, that when I can access the API via gdbus call
, then the system is setup correctly:
ANSWER
Answered 2020-Dec-06 at 16:05Have you checked what is happening with dbus-monitor
? I'm not familiar with how gdbus works, but it looks like you're trying to call yourself:
QUESTION
I am trying to add support for per-directory viewing settings to the Thunar file browser of the Xfce desktop. So for example if a user chooses to view the contents of a directory as a list rather than as a grid of icons, this setting is remembered for that directory and will be used whenever that directory is viewed.
Now Thunar is built on GLib, and the mechanism we have chosen to use to implement this is to store metadata using GFile attributes, using methods like g_file_set_attributes_async to store keys with names such as "metadata::thunar-view-type". The per-directory feature can be turned on or off by the user via a checkbox in a preferences dialog. My knowledge of GIO and GLib is pretty limited, but I have now managed to get this all working as desired (you can see my merge request here if you are interested).
Now as I understand it, the functionality that I am using here relies on something called "GVfs metadata", and as I understand it this might not be available on all systems. On systems where GVfs metadata is not available, I want to turn this functionality off and in particular make the checkbox in the preferences dialog insensitive (i.e. greyed out). Thus I need to write a function to detect if gvfs metadata support is available, by which I mean whether I can use functions like g_file_set_attributes_async to successfully save metadata so that it will be available in future.
Thunar is written in C, so this function needs to be written in C using the C API for GLib, GIO, etc. The function I have come up with (from much reading of API documentation, modifying code scraps I have found, and experimentation) is as follows.
...ANSWER
Answered 2020-Jul-15 at 10:23Call g_file_query_settable_attributes()
and g_file_query_writable_namespaces()
on the GFile
, as described in the GFileInfo
documentation:
However, not all attributes can be changed in the file. For instance, the actual size of a file cannot be changed via
g_file_info_set_size()
. You may callg_file_query_settable_attributes()
andg_file_query_writable_namespaces()
to discover the settable attributes of a particular file at runtime.
QUESTION
Following my previous question which got closed— basically I have a script that check availability of packages on target server, the target server and the packages have been stored to an array.
...ANSWER
Answered 2020-Jan-10 at 15:07Instead of making several ssh connections in nested loops consider this change
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install thunar
Both autogen.sh and configure will list missing dependencies. If your distribution provides development versions of the related packages, install them. Otherwise you will need to build and install the missing dependencies from source. For some additional build & debug hints, as well check the Thunar Wiki pages.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page