Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   opening windows .url files on linux and general change opens with (https://www.cableforum.uk/board/showthread.php?t=33602553)

The Jackal 23-10-2006 15:19

opening windows .url files on linux and general change opens with
 
Guys is there an easy way to change default program on double click for nautilus ?

It looks way to complicated on ubuntu.

The way I have solved opening old .url file is to do this

By using gnome-actions plus this script I wrote

cat open-ie-shortcut
#!/bin/sh

test -e "$1" || exit 0
cat "$1" | grep URL | cut -d'=' -f2 | xargs mozilla-firefox &

Its not pretty and really not quite right as you have to right click on the .url file then run this script

What do u guys think or should I just dump nautilus for something else ?

Cobbydaler 23-10-2006 16:08

Re: opening windows .url files on linux and general change opens with
 
You mean you want to make Firefox the default browser?

See here...

popper 23-10-2006 16:33

Re: opening windows .url files on linux and general change opens with
 
Quote:

Originally Posted by CrC-3rr0r (Post 34142717)
Guys is there an easy way to change default program on double click for nautilus ?

It looks way to complicated on ubuntu.

The way I have solved opening old .url file is to do this

By using gnome-actions plus this script I wrote

cat open-ie-shortcut
#!/bin/sh

test -e "$1" || exit 0
cat "$1" | grep URL | cut -d'=' -f2 | xargs mozilla-firefox &

Its not pretty and really not quite right as you have to right click on the .url file then run this script

What do u guys think or should I just dump nautilus for something else ?

dont know what file to edit by hand but theres an option to change the DC action
http://www.gnome.org/learn/users-guide/2.0/ch07s08.html
"
Table 7.7. Files and Folders Preferences
Option
Description
Open each file or folder in a new window
Select this option to open a new window when you open a file or folder.
Activate items with a single click
Select this option to perform the default action for an item when you click on the item. When this option is selected, and you point to an item, the title of the item is underlined.
Activate items with a double click
Select this option to perform the default action for an item when you double-click on the item.
Execute scripts when they are clicked
Select this option to run an executable file when you choose the executable file. An executable file is a text file that can execute, that is, a shell script.
View scripts when they are clicked
Select this option to display the contents of an executable file when you choose the executable file.
Ask each time
Select this option to display a dialog when you choose an executable file. The dialog asks whether you want to execute the file or display the file.
Ask before emptying the Trash or deleting files
Select this option to display a confirmation message before Trash is emptied, or files are deleted.
Include a Delete command that bypasses Trash
Select this option to add a Delete menu item to the following menus:
  • The Edit menu.
  • The popup menu that is displayed when you right-click on a file, folder, or desktop background object.
When you select an item then choose the Delete menu item, the item is deleted from your file system

"

Tristan 23-10-2006 16:46

Re: opening windows .url files on linux and general change opens with
 
Quote:

Originally Posted by CrC-3rr0r (Post 34142717)
Guys is there an easy way to change default program on double click for nautilus ?

It looks way to complicated on ubuntu.

Right-clicking the file, going to Properties and then the "Open With" tab is too complicated? Well, if you say so...

The Jackal 25-10-2006 13:50

Re: opening windows .url files on linux and general change opens with
 
Quote:

Originally Posted by Tristan (Post 34142775)
Right-clicking the file, going to Properties and then the "Open With" tab is too complicated? Well, if you say so...

Yeh soz mate but my bookmarks are arranged in .url files and folders so yes I frequently use them : I think I'll just write a script to convert them all over,

popper 25-10-2006 18:40

Re: opening windows .url files on linux and general change opens with
 
Quote:

Originally Posted by CrC-3rr0r (Post 34144128)
Yeh soz mate but my bookmarks are arranged in .url files and folders so yes I frequently use them : I think I'll just write a script to convert them all over,

or just find that file above and re-parse that!.


All times are GMT +1. The time now is 10:49.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum