How to add custom action to open folder as root to Thunar?Custom action to set emblem in thunarAdd Searchmonkey to Thunar custom actionsHow to remove a default action in thunar?Thunar custom action to open terminal as rootThunar - Custom actions: select pdf extract pages as imagesCustom actions will not show up in Thunar context menu under “send to”Add Custom Emblem in Thunar, Xubuntu 14.04Open Vim in Xfce4 Terminal from ThunarAre system-wide Thunar custom actions possible?Open a thunar directory with an application action
Do manufacturers try make their components as close to ideal ones as possible?
Can you please explain this joke: "I'm going bananas is what I tell my bananas before I leave the house"?
Company did not petition for visa in a timely manner. Is asking me to work from overseas, but wants me to take a paycut
Can a 2nd-level sorcerer use sorcery points to create a 2nd-level spell slot?
Implement Homestuck's Catenative Doomsday Dice Cascader
How can drunken, homicidal elves successfully conduct a wild hunt?
Is it a problem that pull requests are approved without any comments
What happens to foam insulation board after you pour concrete slab?
How to make a setting relevant?
Are the AT-AT's from Empire Strikes back a deliberate reference to Mecha
What is the advantage of carrying a tripod and ND-filters when you could use image stacking instead?
How do I calculate APR from monthly instalments?
Calling GPL'ed socket server inside Docker?
Java guess the number
How do I write "Show, Don't Tell" as an Asperger
In this example, which path would a monster affected by the Dissonant Whispers spell take?
Credit card offering 0.5 miles for every cent rounded up. Too good to be true?
What happens if you do emergency landing on a US base in middle of the ocean?
Count down from 0 to 5 seconds and repeat
Is there any word or phrase for negative bearing?
PhD student with mental health issues and bad performance
Can Green-Flame Blade be cast twice with the Hunter ranger's Horde Breaker ability?
What is the purpose of building foundations?
When writing an error prompt, should we end the sentence with a exclamation mark or a dot?
How to add custom action to open folder as root to Thunar?
Custom action to set emblem in thunarAdd Searchmonkey to Thunar custom actionsHow to remove a default action in thunar?Thunar custom action to open terminal as rootThunar - Custom actions: select pdf extract pages as imagesCustom actions will not show up in Thunar context menu under “send to”Add Custom Emblem in Thunar, Xubuntu 14.04Open Vim in Xfce4 Terminal from ThunarAre system-wide Thunar custom actions possible?Open a thunar directory with an application action
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Thunar has an option to add context menu custom actions to open Terminal, or to open folders and files in different applications.
Could it be possible to add a menu custom action that would open Thunar itself as root?
root thunar
add a comment |
Thunar has an option to add context menu custom actions to open Terminal, or to open folders and files in different applications.
Could it be possible to add a menu custom action that would open Thunar itself as root?
root thunar
add a comment |
Thunar has an option to add context menu custom actions to open Terminal, or to open folders and files in different applications.
Could it be possible to add a menu custom action that would open Thunar itself as root?
root thunar
Thunar has an option to add context menu custom actions to open Terminal, or to open folders and files in different applications.
Could it be possible to add a menu custom action that would open Thunar itself as root?
root thunar
root thunar
edited Apr 14 at 20:17
Diogo Gomes
352214
352214
asked Oct 9 '12 at 9:38
user47206
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
It appears that this is indeed possible. Following are specific instructions to add such an action, taken from the Xfce site.
Opening a root Thunar
Name: Open a root Thunar here
Command: gksu thunar %f
File pattern: *
Appears if selection contains: Directories
is there a way that change is so that i can open nearly anthing as root?
– user194862
Oct 10 '13 at 11:54
Would there be a reason why this doesn't work? Neither this nor "edit folder as root" do anything for me... nothing opens or happens...
– dez93_2000
Oct 15 '14 at 0:12
2
to add: gksu not installed by default in xubuntu, sudo is. "sudo thunar %f" doesn't work, presumably because there's no way to pass the password to it. "thunar %f" works. You have to right-click a folder.
– dez93_2000
Sep 19 '15 at 16:00
add a comment |
As of 18.04 gksu
is no longer even included in the default repositories. The recommended way to do this now is as follows:
Name: Open as admin
Command: thunar admin://%f
File pattern: *
Appears if selection contains: Directories
Weirdly though, Polkit will sometimes ask for the password twice when you first use this command. The elevated privileges seem to persist for several minutes so you won't be asked for the password again if you use the command several times in a short space of time.
Be aware that this isn't true root. You can modify or delete any files that would require root privileges via this method, however any files you create will just have your default user permissions.
add a comment |
a dirty little trick i use because on my distro the "%f" will never be blatantly passed on to pkexe
create a newfile with the following
#!/bin/sh
# Super User Execute
# Gives PkExec current environmental variables
# and passes current parameters thru running shells to it.
#
# Use this file instead of gksu, gksudo, and, pkexe.
# /usr/bin/suxe
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $1 $2 $3 $4 $5 $6
save it as:
~/suxe
(note: some distros DO NOT like the ~/ shorthand
for home folder access. So, use your actual path in this situation)
e.g
/home/Johnny/Documents/suxe
then make it an executable file in /usr/bin
sudo cp ~/suxe /usr/bin/suxe
make it executable
cd /usr/bin
su chmod -x ./suxe
now in Thunars' custom action use:
Name: Open with admin access
Command: suxe thunar %f
File pattern: *
Appears if selection contains: Directories
hope this helps
add a comment |
I found with UbuntuStudio 18.04 suxe thunar method works without the %f but only after right clicking on a thunar file/folder pane. Doesn't work when right clicking on the desktop.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f198128%2fhow-to-add-custom-action-to-open-folder-as-root-to-thunar%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
It appears that this is indeed possible. Following are specific instructions to add such an action, taken from the Xfce site.
Opening a root Thunar
Name: Open a root Thunar here
Command: gksu thunar %f
File pattern: *
Appears if selection contains: Directories
is there a way that change is so that i can open nearly anthing as root?
– user194862
Oct 10 '13 at 11:54
Would there be a reason why this doesn't work? Neither this nor "edit folder as root" do anything for me... nothing opens or happens...
– dez93_2000
Oct 15 '14 at 0:12
2
to add: gksu not installed by default in xubuntu, sudo is. "sudo thunar %f" doesn't work, presumably because there's no way to pass the password to it. "thunar %f" works. You have to right-click a folder.
– dez93_2000
Sep 19 '15 at 16:00
add a comment |
It appears that this is indeed possible. Following are specific instructions to add such an action, taken from the Xfce site.
Opening a root Thunar
Name: Open a root Thunar here
Command: gksu thunar %f
File pattern: *
Appears if selection contains: Directories
is there a way that change is so that i can open nearly anthing as root?
– user194862
Oct 10 '13 at 11:54
Would there be a reason why this doesn't work? Neither this nor "edit folder as root" do anything for me... nothing opens or happens...
– dez93_2000
Oct 15 '14 at 0:12
2
to add: gksu not installed by default in xubuntu, sudo is. "sudo thunar %f" doesn't work, presumably because there's no way to pass the password to it. "thunar %f" works. You have to right-click a folder.
– dez93_2000
Sep 19 '15 at 16:00
add a comment |
It appears that this is indeed possible. Following are specific instructions to add such an action, taken from the Xfce site.
Opening a root Thunar
Name: Open a root Thunar here
Command: gksu thunar %f
File pattern: *
Appears if selection contains: Directories
It appears that this is indeed possible. Following are specific instructions to add such an action, taken from the Xfce site.
Opening a root Thunar
Name: Open a root Thunar here
Command: gksu thunar %f
File pattern: *
Appears if selection contains: Directories
edited Jun 5 '18 at 12:03
Melebius
5,93652447
5,93652447
answered Oct 9 '12 at 9:42
Karthik TKarthik T
1,30611019
1,30611019
is there a way that change is so that i can open nearly anthing as root?
– user194862
Oct 10 '13 at 11:54
Would there be a reason why this doesn't work? Neither this nor "edit folder as root" do anything for me... nothing opens or happens...
– dez93_2000
Oct 15 '14 at 0:12
2
to add: gksu not installed by default in xubuntu, sudo is. "sudo thunar %f" doesn't work, presumably because there's no way to pass the password to it. "thunar %f" works. You have to right-click a folder.
– dez93_2000
Sep 19 '15 at 16:00
add a comment |
is there a way that change is so that i can open nearly anthing as root?
– user194862
Oct 10 '13 at 11:54
Would there be a reason why this doesn't work? Neither this nor "edit folder as root" do anything for me... nothing opens or happens...
– dez93_2000
Oct 15 '14 at 0:12
2
to add: gksu not installed by default in xubuntu, sudo is. "sudo thunar %f" doesn't work, presumably because there's no way to pass the password to it. "thunar %f" works. You have to right-click a folder.
– dez93_2000
Sep 19 '15 at 16:00
is there a way that change is so that i can open nearly anthing as root?
– user194862
Oct 10 '13 at 11:54
is there a way that change is so that i can open nearly anthing as root?
– user194862
Oct 10 '13 at 11:54
Would there be a reason why this doesn't work? Neither this nor "edit folder as root" do anything for me... nothing opens or happens...
– dez93_2000
Oct 15 '14 at 0:12
Would there be a reason why this doesn't work? Neither this nor "edit folder as root" do anything for me... nothing opens or happens...
– dez93_2000
Oct 15 '14 at 0:12
2
2
to add: gksu not installed by default in xubuntu, sudo is. "sudo thunar %f" doesn't work, presumably because there's no way to pass the password to it. "thunar %f" works. You have to right-click a folder.
– dez93_2000
Sep 19 '15 at 16:00
to add: gksu not installed by default in xubuntu, sudo is. "sudo thunar %f" doesn't work, presumably because there's no way to pass the password to it. "thunar %f" works. You have to right-click a folder.
– dez93_2000
Sep 19 '15 at 16:00
add a comment |
As of 18.04 gksu
is no longer even included in the default repositories. The recommended way to do this now is as follows:
Name: Open as admin
Command: thunar admin://%f
File pattern: *
Appears if selection contains: Directories
Weirdly though, Polkit will sometimes ask for the password twice when you first use this command. The elevated privileges seem to persist for several minutes so you won't be asked for the password again if you use the command several times in a short space of time.
Be aware that this isn't true root. You can modify or delete any files that would require root privileges via this method, however any files you create will just have your default user permissions.
add a comment |
As of 18.04 gksu
is no longer even included in the default repositories. The recommended way to do this now is as follows:
Name: Open as admin
Command: thunar admin://%f
File pattern: *
Appears if selection contains: Directories
Weirdly though, Polkit will sometimes ask for the password twice when you first use this command. The elevated privileges seem to persist for several minutes so you won't be asked for the password again if you use the command several times in a short space of time.
Be aware that this isn't true root. You can modify or delete any files that would require root privileges via this method, however any files you create will just have your default user permissions.
add a comment |
As of 18.04 gksu
is no longer even included in the default repositories. The recommended way to do this now is as follows:
Name: Open as admin
Command: thunar admin://%f
File pattern: *
Appears if selection contains: Directories
Weirdly though, Polkit will sometimes ask for the password twice when you first use this command. The elevated privileges seem to persist for several minutes so you won't be asked for the password again if you use the command several times in a short space of time.
Be aware that this isn't true root. You can modify or delete any files that would require root privileges via this method, however any files you create will just have your default user permissions.
As of 18.04 gksu
is no longer even included in the default repositories. The recommended way to do this now is as follows:
Name: Open as admin
Command: thunar admin://%f
File pattern: *
Appears if selection contains: Directories
Weirdly though, Polkit will sometimes ask for the password twice when you first use this command. The elevated privileges seem to persist for several minutes so you won't be asked for the password again if you use the command several times in a short space of time.
Be aware that this isn't true root. You can modify or delete any files that would require root privileges via this method, however any files you create will just have your default user permissions.
edited Aug 24 '18 at 22:45
answered Aug 24 '18 at 18:08
FibblesFibbles
1214
1214
add a comment |
add a comment |
a dirty little trick i use because on my distro the "%f" will never be blatantly passed on to pkexe
create a newfile with the following
#!/bin/sh
# Super User Execute
# Gives PkExec current environmental variables
# and passes current parameters thru running shells to it.
#
# Use this file instead of gksu, gksudo, and, pkexe.
# /usr/bin/suxe
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $1 $2 $3 $4 $5 $6
save it as:
~/suxe
(note: some distros DO NOT like the ~/ shorthand
for home folder access. So, use your actual path in this situation)
e.g
/home/Johnny/Documents/suxe
then make it an executable file in /usr/bin
sudo cp ~/suxe /usr/bin/suxe
make it executable
cd /usr/bin
su chmod -x ./suxe
now in Thunars' custom action use:
Name: Open with admin access
Command: suxe thunar %f
File pattern: *
Appears if selection contains: Directories
hope this helps
add a comment |
a dirty little trick i use because on my distro the "%f" will never be blatantly passed on to pkexe
create a newfile with the following
#!/bin/sh
# Super User Execute
# Gives PkExec current environmental variables
# and passes current parameters thru running shells to it.
#
# Use this file instead of gksu, gksudo, and, pkexe.
# /usr/bin/suxe
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $1 $2 $3 $4 $5 $6
save it as:
~/suxe
(note: some distros DO NOT like the ~/ shorthand
for home folder access. So, use your actual path in this situation)
e.g
/home/Johnny/Documents/suxe
then make it an executable file in /usr/bin
sudo cp ~/suxe /usr/bin/suxe
make it executable
cd /usr/bin
su chmod -x ./suxe
now in Thunars' custom action use:
Name: Open with admin access
Command: suxe thunar %f
File pattern: *
Appears if selection contains: Directories
hope this helps
add a comment |
a dirty little trick i use because on my distro the "%f" will never be blatantly passed on to pkexe
create a newfile with the following
#!/bin/sh
# Super User Execute
# Gives PkExec current environmental variables
# and passes current parameters thru running shells to it.
#
# Use this file instead of gksu, gksudo, and, pkexe.
# /usr/bin/suxe
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $1 $2 $3 $4 $5 $6
save it as:
~/suxe
(note: some distros DO NOT like the ~/ shorthand
for home folder access. So, use your actual path in this situation)
e.g
/home/Johnny/Documents/suxe
then make it an executable file in /usr/bin
sudo cp ~/suxe /usr/bin/suxe
make it executable
cd /usr/bin
su chmod -x ./suxe
now in Thunars' custom action use:
Name: Open with admin access
Command: suxe thunar %f
File pattern: *
Appears if selection contains: Directories
hope this helps
a dirty little trick i use because on my distro the "%f" will never be blatantly passed on to pkexe
create a newfile with the following
#!/bin/sh
# Super User Execute
# Gives PkExec current environmental variables
# and passes current parameters thru running shells to it.
#
# Use this file instead of gksu, gksudo, and, pkexe.
# /usr/bin/suxe
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $1 $2 $3 $4 $5 $6
save it as:
~/suxe
(note: some distros DO NOT like the ~/ shorthand
for home folder access. So, use your actual path in this situation)
e.g
/home/Johnny/Documents/suxe
then make it an executable file in /usr/bin
sudo cp ~/suxe /usr/bin/suxe
make it executable
cd /usr/bin
su chmod -x ./suxe
now in Thunars' custom action use:
Name: Open with admin access
Command: suxe thunar %f
File pattern: *
Appears if selection contains: Directories
hope this helps
answered Sep 18 '15 at 22:17
j.Paradisej.Paradise
11
11
add a comment |
add a comment |
I found with UbuntuStudio 18.04 suxe thunar method works without the %f but only after right clicking on a thunar file/folder pane. Doesn't work when right clicking on the desktop.
add a comment |
I found with UbuntuStudio 18.04 suxe thunar method works without the %f but only after right clicking on a thunar file/folder pane. Doesn't work when right clicking on the desktop.
add a comment |
I found with UbuntuStudio 18.04 suxe thunar method works without the %f but only after right clicking on a thunar file/folder pane. Doesn't work when right clicking on the desktop.
I found with UbuntuStudio 18.04 suxe thunar method works without the %f but only after right clicking on a thunar file/folder pane. Doesn't work when right clicking on the desktop.
answered Sep 15 '18 at 3:09
lasakrolasakro
213
213
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f198128%2fhow-to-add-custom-action-to-open-folder-as-root-to-thunar%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown