diff --git a/data/midori-private.desktop.in b/data/midori-private.desktop.in new file mode 100644 index 00000000..e307ba9c --- /dev/null +++ b/data/midori-private.desktop.in @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Type=Application +_Name=Private Browsing +_Comment=Open a new private browsing window +Categories=GTK;Network;WebBrowser; +Exec=midori --private +Icon=midori +Terminal=false +StartupNotify=true +X-Osso-Type=application/x-executable +X-Osso-Service=midori + diff --git a/wscript b/wscript index 39d73882..e1d56dfc 100644 --- a/wscript +++ b/wscript @@ -412,7 +412,9 @@ def build (bld): bld.add_subdirs ('docs/api') bld.install_files ('${DOCDIR}/api/', blddir + '/docs/api/*') - if not is_mingw (bld.env) and Options.platform != 'win32': + for desktop in [APPNAME + '.desktop', APPNAME + '-private.desktop']: + if is_mingw (bld.env) or Options.platform == 'win32': + break if bld.env['HAVE_HILDON']: appdir = '${MDATADIR}/applications/hildon' bld.install_files ('${MDATADIR}/dbus-1/services', @@ -421,14 +423,13 @@ def build (bld): appdir = '${MDATADIR}/applications' if bld.env['INTLTOOL']: obj = bld.new_task_gen ('intltool_in') - obj.source = 'data/' + APPNAME + '.desktop.in' + obj.source = 'data/' + desktop + '.in' obj.install_path = appdir obj.flags = ['-d', '-c'] - bld.install_files (appdir, 'data/' + APPNAME + '.desktop') + bld.install_files (appdir, 'data/' + desktop) else: folder = os.path.abspath (blddir + '/default/data') Utils.check_dir (folder) - desktop = APPNAME + '.desktop' pre = open ('data/' + desktop + '.in') after = open (folder + '/' + desktop, 'w') try: