LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-16-2010, 08:44 AM   #1
Affromen
Member
 
Registered: Mar 2008
Location: Kaunas, Lithuania
Distribution: Slackware forever
Posts: 30

Rep: Reputation: 17
getting p7zip gui to work in XFCE4


Hello fellow Slackers,

I just installed p7zip with GUI from slackbuilds, but there is a problem, since i can't get it to work with XFCE4. After looking into package, i noticed that .desktop files are installed into:
Code:
/usr/share/apps/konqueror/servicemenus
there are total of 6 .desktop items:
Code:
ls -l /usr/share/apps/konqueror/servicemenus/
total 24
-rw-r--r-- 1 root root 952 2010-01-16 15:12 p7zip_compress.desktop
-rw-r--r-- 1 root root 949 2010-01-16 15:12 p7zip_compress2.desktop
-rw-r--r-- 1 root root 663 2010-01-16 15:12 p7zip_extract.desktop
-rw-r--r-- 1 root root 679 2010-01-16 15:12 p7zip_extract_subdir.desktop
-rw-r--r-- 1 root root 662 2010-01-16 15:12 p7zip_extract_to.desktop
-rw-r--r-- 1 root root 641 2010-01-16 15:12 p7zip_test.desktop
and if i look inside of one of these files, the syntax is quite KDE specific and are probably supposed to be seen in a menu when you right click on file.

So the big question is: is it possible to make XFCE4/Thunar do something similar?

So far i have tried to view p7zip_extract_to.desktop file in a text editor and i learned, that the command for this looks like this:
Code:
p7zipForFilemanager xd %U
And if I right click on archive and then select "Open With Another Application" and then input this command, then double click on archive, i get this nice pop up:
7zip.png
Which is fine for extracting, but when it comes to creating archives, it's a bit inconvenient to do this every time i need something archived.

I would would really like to have 7zip menu when i right click on file, so i welcome ideas on this matter.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-16-2010, 10:38 AM   #2
Affromen
Member
 
Registered: Mar 2008
Location: Kaunas, Lithuania
Distribution: Slackware forever
Posts: 30

Original Poster
Rep: Reputation: 17
Well, after using google for a bit, i found the solution for my problem, it's not exactly what I've wanted, but it works well enough

So here is how it's done:

First i opened Thunar and opened Custom actions configuration tool:
Quote:
Edit --> Configure custom actions...
Then little window appeared:
Custom_actions.png

Here it is possible to add custom actions for various files, so first I'll create action for adding files to archive by pressing that big + on the top right corner, and then select "Appearance Conditions" tab. Here i have selected all the file types, as i am occasionally creating archives of various files:
Appearance_conditions.png

Then select "Basic" tab and fill it with descriptions and commands, select the icon (7zip icon is in /usr/share/icons/hicolor/16x16/apps/) i have used this 7zip command:
Quote:
p7zipForFilemanager ad -t7z %U
All should look like this:
Basic_tab.png

Now close Custom actions window and right click on any of you files, there is new option "7zip: Create Archive", select it and you get this nice 7zip Gui:
7zip_create_archive_gui.png

Now for archive extraction
Again open the "Configure custom actions" window, press big + and select "Appearance Conditions" tab, and fill it like this:
Appearance_conditions2.png
All the formats 7zip can handle should be entered in "File Pattern" section, i have entered these:

Code:
*.tar.gz;*.zip;*.tgz;*.tar;*.tar.bz2;*.rar
Once again, fill the "Basic" tab with commands, icon, descriptions like this. i have used 7zip's extract to command:
Code:
p7zipForFilemanager xd %U
Basic_tab2.png

Now close the "Custom actions" window and right click on any archive, you should see "7zip: Extract To" option, if you select it, you get this nice 7zip GUI tool for archive extraction:
7zip_extract_to.png


And that is it! Who said Linux was not user friendly?
Hopefully this little How To will prove it self useful.

P.S.
Although i am happy enough with the outcome, but please, do not remain silent, if you have something to add or some better ideas,
Thank You

Last edited by Affromen; 01-16-2010 at 10:43 AM.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
p7zip fakie_flip Linux - Software 4 05-21-2017 07:45 AM
upgrade to slackware 12.2 + xfce4.6 (xfce4-power-manager doesn't work) zux Slackware 4 04-22-2009 11:28 AM
How make xfce4-mixer work with alsa? yfwill Linux - Desktop 0 10-08-2008 08:34 PM
howto for p7zip please fakie_flip Linux - Software 4 08-13-2006 09:56 AM
Any Distros use XFce4 as a defualt GUI fatrandy13 Linux - General 3 09-21-2004 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration